Skip to content

cabana: fix dark theme detection to work with system theme #35690

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

Merged

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Jul 11, 2025

This PR improves dark theme detection by checking if the window background lightness is below 128. It ensures icons, charts display correctly when the system uses a dark theme.

before:

Screenshot 2025-07-11 14:09:51

after:

Screenshot 2025-07-11 14:08:59

@deanlee deanlee changed the title fix dark theme detection to work with system theme cabana: fix dark theme detection to work with system theme Jul 11, 2025
@github-actions github-actions bot added the tools label Jul 11, 2025
@deanlee deanlee force-pushed the cabana_fix_dark_theme_detection branch from 688707d to f956328 Compare July 11, 2025 06:23
@deanlee deanlee force-pushed the cabana_fix_dark_theme_detection branch from f956328 to 86888ae Compare July 11, 2025 06:41
@adeebshihadeh adeebshihadeh merged commit be4e995 into commaai:master Jul 11, 2025
15 checks passed
@deanlee deanlee deleted the cabana_fix_dark_theme_detection branch July 12, 2025 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants