sidebar-card icon indicating copy to clipboard operation
sidebar-card copied to clipboard

Question: horizontal lines dark mode vs. light mode

Open hesspoint opened this issue 1 year ago • 4 comments

Hi,

I managed to setup my sidebar that it automatically adjusts to light and dark mode (i.e. change the background, font and icon colors) to match.

However one thing I could not find out is how to make the thin horizontal separator lines above and below the menu to adapt. They are always white which makes them show in dark mode but be invisible (i.e. same color as background) in light mode.

Does anyone know the right style setting here? Or is it a bug?

hesspoint avatar May 07 '23 14:05 hesspoint

Which lines? Can you show screenshots in both modes showing the lines?

Mr-HaleYa avatar May 08 '23 23:05 Mr-HaleYa

These lines I mean They are nicely visible in dark mode IMG_0033

But in light mode they are "invisible" IMG_0032

hesspoint avatar May 09 '23 19:05 hesspoint

How did you achieve this?

I managed to setup my sidebar that it automatically adjusts to light and dark mode (i.e. change the background, font and icon colors) to match.

Andreasjkoch avatar May 14 '23 21:05 Andreasjkoch

@Andreasjkoch

I just removed the 2 first lines in ‘style’

--sidebar-background: #000; --sidebar-text-color: #FFF; Then the colors are automatically adjusted to light or dark mode.

Also important is removing

.sidebarMenu li ha-icon { color: #FFF!important; }

Otherwise the icons in menu items are always white and in light mode they will be invisible (as seen on the screenshot). By removing the lines of code above, they will also auto adjust to light/dark mode.

As said the only thing I have not figured out yet is how to make the separator bars change color automatically. So if anyone was successful here let me know

hesspoint avatar Jun 04 '23 11:06 hesspoint