Skip to content

Using device night mode settings to determine glance colors#84

Open
alexpetroaica wants to merge 1 commit into
hatl:masterfrom
alexpetroaica:fix/use-device-nightmode
Open

Using device night mode settings to determine glance colors#84
alexpetroaica wants to merge 1 commit into
hatl:masterfrom
alexpetroaica:fix/use-device-nightmode

Conversation

@alexpetroaica

Copy link
Copy Markdown

WIthout this, I get the dark mode only for the hasscontrol glance, while everything else is in light mode. I tested this on my Edge Explore 2 and it works perfectly (in the simulator there is a weird behaviour when selecting night/day mode where only the area around the glance title changes colour, but on real devices it works as expected)

@hatl

hatl commented Jul 20, 2025

Copy link
Copy Markdown
Owner
image

The issue is, that isNightModeEnabled requires a much higher API level. Currently, hasscontrol works from 3.1.0 onwards.
You would need to somehow check the API level first.
I'm not sure yet, how to do this properly.

@hatl

hatl commented Jul 20, 2025

Copy link
Copy Markdown
Owner

also: the background color on watches is black.
this means that on a watch, the background color should always be set to black.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants