-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Charts with transparent background #1183
Comments
You may want to check with the new OH iOS repository as they found a way to recolor the charts for dark mode. |
Well, the iOS app just appends the chart theme (https://github.com/openhab/openhab-ios/blob/master/openHAB/Endpoint.swift#L90). |
There’s more happening than switching the CSS theme. The charts are recoloured. |
Can you point me to the code where the charts are recolored? Or post a screenshot? To me it seems that they just use the chart themes provided by the server. |
Here you go: As you can see, the background is dark gray or black, and the reds are darker too. |
This is just the basic chart theming... |
I didn't know this. Good to know. |
Currently the background of the dark theme differs from the background color of the Android app. With a transparent background, it'll be the same. The version bump is required so the app can use the current `dark` theme for older versions of the server. Closes openhab#1183
* Improve exception handling * Add dark_transparent theme * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 * Fix buggy legend position logic: Reinitialize counter to 0. So it does not work on legend position counter values of previously created charts. Use a local variable for the position counter instead of a field. This prevents issues when creating multiple charts simultanuously. For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 * Fix buggy legend position logic: Reinitialize counter to 0. So it does not work on legend position counter values of previously created charts. Use a local variable for the position counter instead of a field. This prevents issues when creating multiple charts simultanuously. For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 * Fix buggy legend position logic: Reinitialize counter to 0. So it does not work on legend position counter values of previously created charts. Use a local variable for the position counter instead of a field. This prevents issues when creating multiple charts simultanuously. For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 * Fix buggy legend position logic: Reinitialize counter to 0. So it does not work on legend position counter values of previously created charts. Use a local variable for the position counter instead of a field. This prevents issues when creating multiple charts simultanuously. For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 * Fix buggy legend position logic: Reinitialize counter to 0. So it does not work on legend position counter values of previously created charts. Use a local variable for the position counter instead of a field. This prevents issues when creating multiple charts simultanuously. For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 * Fix buggy legend position logic: Reinitialize counter to 0. So it does not work on legend position counter values of previously created charts. Use a local variable for the position counter instead of a field. This prevents issues when creating multiple charts simultanuously. For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes #1183 Related to #2501 Supersedes #2415 Signed-off-by: Wouter Born <[email protected]>
* Improve exception handling * Add transparent themes * Add null annotations * Use java.time classes instead of Date and magic numbers * Upgrade XChart to 3.1.0 * Fix buggy legend position logic: Reinitialize counter to 0. So it does not work on legend position counter values of previously created charts. Use a local variable for the position counter instead of a field. This prevents issues when creating multiple charts simultanuously. For XChart release notes see: https://knowm.org/open-source/xchart/xchart-change-log/ On newer XChart versions there is an issue when using customized grid lines: knowm/XChart#628 Fixes openhab#1183 Related to openhab#2501 Supersedes openhab#2415 Signed-off-by: Wouter Born <[email protected]> GitOrigin-RevId: ac84206
I'd like to see a chart theme with transparent background. Actually two themes with transparent background are needed: one for light and one for dark backgrounds.
Currently the grey background of the dark chart theme and the background of the android app aren't the same, which looks bad IMO.
The text was updated successfully, but these errors were encountered: