Shell icon indicating copy to clipboard operation
Shell copied to clipboard

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?

Open bigplayer-ai opened this issue 2 years ago • 4 comments

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]
}

bigplayer-ai avatar Oct 05 '23 00:10 bigplayer-ai

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]

moudey avatar Oct 05 '23 11:10 moudey

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]
}

bigplayer-ai avatar Oct 05 '23 15:10 bigplayer-ai

Look at:

https://discord.com/channels/1106387012707168318/1139275510506082336/1155924668914610187

RubicBG avatar Oct 05 '23 17:10 RubicBG

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

OsakaRider avatar Oct 07 '23 20:10 OsakaRider