-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Basic UI] On narrower screens Chart takes more place #1930
Comments
It depends if you have one or two columns. Your suggestion is very probably too much complex to implement. |
Try to set 960x480 for example and you will have a good surprise. If you have a good server CPU, it should be fine. Even with a RPI, it is still reasonable. |
My answer should have resolved your "issue". |
You can fill a feature request if you would like a different behaviour. |
I mean out of the box this does not work good, if this has to be set up. I do not see why it shall be complex to implement that a column (and charts in column) always has the same width, irrespective of how many columns are displayed. |
BasicUI choice was to not upscale images. And default size for charts was defined to get a fast chart creation even with a small hardware like a RPI.
What looks complex to me was your suggestion "and in the other column inserting several “normal” items, so that no vertical space is left unused.". Maybe a good "compromise" would be to upscale charts, keeping normal images unscaled. As the change is simple for you, you can always propose a change through a PR and we will review your proposal. |
I reopen the issue. |
Image and chart are upscaled as soon as the screen width is <= 850 pixels. That is on a desktop. I am not sure what was the reason to introduce this different behaviour. What I am not yet understanding is why upscale is systematically applied on my phone while its screen width is in principle 1080. |
If I comment our CSS code triggering the upscale of images when screen width is <=850 pixels, I can see that upscale is no more applied, neither on desktop, nor on phone. That would mean that my phone screen width is detected as <= 850, that is strange! Is it possible on an Android phone to check what is the current screen resolution (like on Windows) ? My plan for image (and chart) is to disable the upscale for small screen resolution but provide a button in a new image header row to switch between unscaled and upscaled. |
For charts, we could decide if the default should be "upscaled" or not. The size of the chart produced by the OH server is driven by OH settings, the default is 240x480. Upscaling such resolution is reasonable on a phone but leads to bad quality image on a big desktop screen. |
That is finally clearer for me after few more WEB readings. Each device has a screen resolution and a Density Pixel Ratio, that means a physical resolution and a logical resolution. Pixels in CSS are based on logical resolution. |
I tested with my RPI 3 and the time to render a 240x480 or 480x960 chart is very similar. What impacts the rendering time is in fact not really the chart resolution but the number of data you have in your chart (time frame & number of items). |
Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image, chart, video, mapview and webview elements, if the label is emppty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]>
Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image, chart, video, mapview and webview elements, if the label is emppty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]>
Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image, chart, video, mapview and webview elements, if the label is emppty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]>
Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]>
Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]>
Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]>
…2010) Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes #1939 Fixes #1367 Also related to #1930 Signed-off-by: Laurent Garnier <[email protected]>
…penhab#2010) Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Stefan Höhn <[email protected]>
…penhab#2010) Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: jgeorgi <[email protected]>
…penhab#2010) Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: jgeorgi <[email protected]>
…penhab#2010) Header line for video element contains icon and label. Header line for image element contains icon, label and a button to switch between no upscale and upscale of the image. Header line for chart element contains icon, label and 4 buttons: - one button to show or hide the legend - one button to change the time range - one button to switch between no upscale and upscale of the chart - one button to refresh the chart Fix handling of iconcolor and labelcolor parameters for mapview and webview elements. For image and chart elements, the header line is always present so that user has an access to its buttons. For video, mapview and webview elements, if the label is empty, the header line is hidden. For chart and image elements, there is now no upscale applied by default (tablet/phone devices) but a button allows upscaling. Closes openhab#1939 Fixes openhab#1367 Also related to openhab#1930 Signed-off-by: Laurent Garnier <[email protected]>
As I plan to add per device settings for Basic UI, I will also add a new DPI setting that will be used for chart, I guess something similar to the existing setting in the Android app. |
The current default chart dimension is a compromise, probably too big for a phone, ok for a tablet and too small for desktop. I will add another device setting to choose amongst predefined chart dimensions. I am working on it. |
Fix openhab#1832 Closes openhab#1930 A new page is available to show and update all per-device settings. This page is accessible through the sitemap list page or the home page of any sitemap. Basic UI theme now matches the dark mode of Main UI. It can be updated either in Main UI or in the new page of Baisc UI. Web Audio can also be enabled either in Main UI or Basic UI. New settings are also available to control the size of the chart and the size of content (text, line) in the chart. Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#1832 Closes openhab#1930 A new page is available to show and update all per-device settings. This page is accessible through the sitemap list page or the home page of any sitemap. Basic UI theme now matches the dark mode of Main UI. It can be updated either in Main UI or in the new page of Baisc UI. Web Audio can also be enabled either in Main UI or Basic UI. New settings are also available to control the size of the chart and the size of content (text, line) in the chart. Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#1832 Closes openhab#1930 A new page is available to show and update all per-device settings. This page is accessible through the sitemap list page or the home page of any sitemap. Basic UI theme now matches the dark mode of Main UI. It can be updated either in Main UI or in the new page of Baisc UI. Web Audio can also be enabled either in Main UI or Basic UI. New settings are also available to control the size of the chart and the size of content (text, line) in the chart. Signed-off-by: Laurent Garnier <[email protected]>
Regarding default chart size, I think the current default size is a good compromise. Of course, it is already too big for a phone, meaning the image will be downscaled, and it is too small for a big desktop screen. |
Fix openhab#1832 Closes openhab#1930 A new page is available to show and update all per-device settings. This page is accessible through the sitemap list page or the home page of any sitemap. Basic UI theme now matches the dark mode of Main UI. It can be updated either in Main UI or in the new page of Baisc UI. Web Audio can also be enabled either in Main UI or Basic UI. The iconify setting is now enabled by default. The script to handle iconify icons is now loaded in sitemap pages only if the iconify setting is enabled. New settings are also available to control the size of the chart and the size of content (text, line) in the chart. Signed-off-by: Laurent Garnier <[email protected]>
Closes openhab#1832 Closes openhab#1930 Closes openhab#2342 A new page is available to show and update all per-device settings. This page is accessible through the sitemap list page or the home page of any sitemap. Basic UI theme now matches the dark mode of Main UI. It can be updated either in Main UI or in the new page of Baisc UI. Web Audio can also be enabled either in Main UI or Basic UI. The iconify setting is now enabled by default. The script to handle iconify icons is now loaded in sitemap pages only if the iconify setting is enabled. New settings are also available to control the size of the chart and the size of content (text, line) in the chart. A new setting is also available to enable a bigger font size. Signed-off-by: Laurent Garnier <[email protected]>
Closes openhab#1832 Closes openhab#1930 Closes openhab#2342 A new page is available to show and update all per-device settings. This page is accessible through the sitemap list page or the home page of any sitemap. Basic UI theme now matches the dark mode of Main UI. It can be updated either in Main UI or in the new page of Baisc UI. Web Audio can also be enabled either in Main UI or Basic UI. The iconify setting is now enabled by default. The script to handle iconify icons is now loaded in sitemap pages only if the iconify setting is enabled. New settings are also available to control the size of the chart and the size of content (text, line) in the chart. A new setting is also available to enable a bigger font size. Signed-off-by: Laurent Garnier <[email protected]>
Below are two screen shots from browser. In the second one the width of the browser is smaller, but the chart is bigger. This is against every logic.
I suggest either using always the larger variant of the chart, or using for the chart one column, and in the other column inserting several “normal” items, so that no vertical space is left unused.
The text was updated successfully, but these errors were encountered: