-
-
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
[BasicUI] More contrast in dark mode #1831
Comments
I will try to customize the colors. |
I do not understand what is this case ? Is it outside any group or outside any frame ? |
Sample zz.sitemap:
View of the group In the first screenshot the contrast is lower than on the second screenshot.
It is outside any group and I do not have frames. |
I do not use color picket and rollerbind. But for me it seems that dark blue on black background is low contrast. |
Applied to colopicker, setpoint and switch/rollerblind widgets. Related to openhab#1831 Signed-off-by: Laurent Garnier <[email protected]>
Applied to colopicker, setpoint and switch/rollerblind widgets. Related to openhab#1831 Signed-off-by: Laurent Garnier <[email protected]>
Applied to colopicker, setpoint, switch/rollerblind and switch/mappings widgets. Related to openhab#1831 Signed-off-by: Laurent Garnier <[email protected]>
As far as presenting Groups is concerned, I realize now that in Light (“Default”) mode BasicUI shows a white background, when displaying Groups, and light gray background when not displaying groups (but top-level items). This might be the reason for the significantly lower contrast for the “main” items in dark mode. |
Applied to colopicker, setpoint, switch/rollerblind and switch/mappings widgets. Related to openhab#1831 Signed-off-by: Laurent Garnier <[email protected]>
Yes, it is better. I assume the above excerpt is for top-level items (not Groups, which were good). Are the toggles now also better in dark mode? |
Applied to colopicker, setpoint, switch/rollerblind and switch/mappings widgets. Also change the track color of the switch widget when state is OFF Related to openhab#1831 Signed-off-by: Laurent Garnier <[email protected]>
I just updated the switch toggle when in dark mode, look at the capture before/after in the PR. |
The changes apply to any frame in the main page and any group or sub-page opened from the main page. |
…ode (#1834) Applied to colopicker, setpoint, switch/rollerblind and switch/mappings widgets. Also change the track color of the switch widget when state is OFF Related to #1831 Signed-off-by: Laurent Garnier <[email protected]>
The background is not the same when there are frames or not. I agree that the contrast is low for texts when in dark mode and no frames. Looks more acceptable when in bright mode. |
By inspecting the page with browser tools, I can see that the color of "Setpoint Temp" is rgb(97, 97, 97) in one case and rgb(192, 192, 192) in the other case. So the "white" is not the same in both cases and it explains the difference of contrast. |
Explanation found: the default color set at the highest level (body level) is "mdl-color-text--grey-700" and it is the same whatever the theme. |
Use the same text color (depending on theme) as a frame was present. Related to openhab#1831 Signed-off-by: Laurent Garnier <[email protected]>
Use the same text color (depending on theme) as if a frame was present. Related to openhab#1831 Signed-off-by: Laurent Garnier <[email protected]>
) Use the same text color (depending on theme) as if a frame was present. Related to #1831 Signed-off-by: Laurent Garnier <[email protected]>
I see now that the slider widget should be updated too |
Shall this ticket be reopened? |
No. |
I use openHAB 3.4 and Basic UI in Dark mode with Firefox. This is a screenshot at the top level (outside of any groups)
This is a screen shot of a group:
To be able easily to perceive the text the contrast between text color and text background shall be high. In the first screenshot the contrast is low. In the second screenshot the text is lighter and therefore the contrast is better. In the sitemap file I have no settings which change the color on that particular items.
The second screenshot shows (on the left) a switch and on the right
The UP and DOWN buttons, and the ON state (Ръчно) are displayed with black text on dark gray background. This has very low contrast and therefore is hard to read.
The text was updated successfully, but these errors were encountered: