customize sidebar scrollbar #208
Replies: 2 comments 10 replies
-
Because the sidebar scrollbar is not coming from Home Assistant, it is a native scrollbar from your OS. There is a CSS proposal that is not baseline yet, but is not supported by every browser (mainly Safari): https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color |
Beta Was this translation helpful? Give feedback.
-
I did find these pseudo classes in HA and apparently we can set a background-color to the scrollbar-thumb: must check what ha-styles.ts says about that...... apparently this: https://github.com/home-assistant/frontend/blob/991cf83ff3c14ca119c38aed4e1fc0f2af1e794e/src/resources/ha-style.ts#L37
that looks promising. check! haha, it's as simple as setting that variable in the theme files |
Beta Was this translation helpful? Give feedback.
-
as I just realized when traversing the Dom in Inspector, we can have very nice themes and colors, but the sidebar's scroll handle isnt yet set:
it might be taking the color of another variable I didn't find yet, but it would be nice of we could set it to a certain color (variable)
as it belongs to the sidebar, wouldn't this be a nice setting for the plugin to control?
thoughts?
Beta Was this translation helpful? Give feedback.
All reactions