Is it possible to have white glyphs if the system OS is in dark mode, and dark glyphs if the system OS is in light mode?
Hey,
Is it possible to have white glyphs if the system OS is in dark mode, and dark glyphs if the system OS is in light mode?
Here's a possible pseudo code:
theme
{
name = "modern"
dark = auto
background
{
color = auto
opacity = 50
effect = auto
}
image.align = 2
if dark:
image.color = [color.accent, color.accent_light3]
else:
image.color = [color.accent, color.accent_dark3]
}
image.color = if(theme.isdark, [color.accent, color.accent_dark3], [color.accent, color.accent_light3])
// or use Ternary Operator
image.color = theme.islight ? [color.accent, color.accent_light3] : [color.accent, color.accent_dark3]
Do you have any other ideas to make it more consistent with Windows 11? I'd like to use more of the accent color while achieving the same effect as Windows 11.
Here's my current theme:
theme
{
name="modern"
dark=auto
background
{
color=auto
opacity=50
}
image.align=2
image.color = theme.islight ? [color.accent, color.accent_dark3] : [color.accent, color.accent_light3]
}
Look at:
https://discord.com/channels/1106387012707168318/1139275510506082336/1155924668914610187
Do you have any other ideas to make it more consistent with Windows 11? I'd like to use more of the accent color while achieving the same effect as Windows 11.
Here's my current theme:
theme { name="modern" dark=auto background { color=auto opacity=50 } image.align=2 image.color = theme.islight ? [color.accent, color.accent_dark3] : [color.accent, color.accent_light3] }
I found that this worked better and wasn't too aggressive, matched windows better
image.color = color.accent