per item dynamic (templated) styling and notifications #163
Replies: 8 comments 75 replies
-
Hi @Mariusthvdb, For the colors, indeed, at the moment they need to be added to the general styles and target the individual items by Regards |
Beta Was this translation helpful? Give feedback.
-
seems the last object we might want to add a dynamic notification to is the actual menu icon itself. coloring the icon itself is easy
but overlaying it with a notification badge is not obvious yet:
Would you know the way to do that? |
Beta Was this translation helpful? Give feedback.
-
Hi @Mariusthvdb, |
Beta Was this translation helpful? Give feedback.
-
Yes, it is, but it should be the same for all the badges (even the core one).
Yes, this the order of backgrounds for that element (I need to double check if I am using the same order as core)
The first two ones are from the plugin, the last ones are from core
I see, it seems that it got broken, it works in the global setting but not in the item settings, I need to check.
That would make the block to get misaligned with the item block (there are various styles to make them perfectly aligned when there is an info text). As someone will want two lines and other will want four, it is better that you override the styles and personalise it at your needs in every case. I'll check this afternoon that notification color. |
Beta Was this translation helpful? Give feedback.
-
Hi @Mariusthvdb, |
Beta Was this translation helpful? Give feedback.
-
It would be great if hide could also be defined as a template. Then you could switch dynamically between two or more menu trees: one with the settings (scripts, automation, etc.) and one with the normal dashboards. These can be hidden by default and also defined via this addon. |
Beta Was this translation helpful? Give feedback.
-
I would like to close this, as the discussion here has been completely resolved. |
Beta Was this translation helpful? Give feedback.
-
since you do support some Styling on the sidebar as a whole, maybe you are also interested to develop styling to be available on individual items?
I have an extensive card-mod theme to do so, resulting in below display. Currently I do use several features of your card besides the order: a menu title, the editability of the menu, and templated name for the Energy item. Which is great.
All others are made in card-mod theming (see below).
this is the yaml for the theme mods, maybe you can use some of it to add as features to your custom resource. It would be great if we could style the colors of the individual items (icon/background/name/notification) and have a builtin away to add the notifications, for which I now have to calculate the place and width individually, causing a lot of repetetive yaml.
Beta Was this translation helpful? Give feedback.
All reactions