Hey, Iām stuck on changing the text size of only the first line in the Digital-Clock card from hacs, I can make both lines of text bigger but I only want to make the first line (time) bigger
Yeah, thatās what Iām talking about
People who will want to customize the new badges, trying to use the (soon to be) old card-mod tutorial that can be found here.
EDIT: you can use custom:hui-state-badge-element for legacy look but the good olā fashion card-mod syntax for badge like the example bellow will not work without a bit of research
This has probably already been asked a 1000 times, but I wasnāt able to get it to work with the posts I found.
Basically, I have this card (see above), I now I just like to change the icon for binary_sensor.gate_door_position_sensor, when the gate is āopenā, show icon AA, when the gate is āclosedā, show icon BB.
so the badge label doesnt have a border-radius variable of its own, which is a bit a pity, and reason we need to travers the Dom for thatā¦ Havent found a way to set different colors on the borders either. we could do that for the badge and the label individually before.
Still trying to work my way through the new Tile card features changes to get the border-radius backā¦
Team simply says thatās unsupported undocumented so weāre on our own thereā¦
Find that somewhat user unfriendly myself (after all why take the trouble to announce a warning on the changes, but leave the changes themselves unmentioned) but will probably work it out anyways
first of all, just setting those variables in a theme, which would then be picked up by the cards, as their default values for these variables are the ones I posted above, var(--feature-border-radius). That doesnāt work.
You can, you have to create your own theme, you can even include some card-mod default that will apply to every cards (wrong exemple, as it refers to badges that will change in 2024.8.0 but you get the idea)
EDIT: Donāt forget that card-mod is coming after everything else, therefore, if it was already defined/inherited by something else, you need to !important to override the value
I use those card-mod-themes since forever, no mysteries there. well, most of it is clear anywaysā¦
what I meant is, we can set values on the system variables like
ha-card-border-width: 0
ha-card-border-color: transparent # test this is even necessary with width = 0?
ha-card-border-radius: 0
ha-dialog-border-radius: var(--ha-card-border-radius)
ha-config-card-border-radius: var(--ha-card-border-radius)
and it will get applied to all views/cards that use these variables.
simply doesnt work, it seems unrecognized, and we need to resort to card-mod like I posted above. Card-mod remains a very important tool in the box, even though using that feature-border-radius would be way simpler
EDIT: Sorry, Iām blindly helping, I had to remove 2024.8.0b3 because Alexa Media Player is failing to initialize (since b0). So Iāve no way to test and check what Iām giving you.
Let me test that again , I did some initial testing on that without success
Also, I think the details on the sliders donāt use that variable .
Thatās what my tile mods are a bit involvedā¦
Thanks! Iāll be back
Haha, thats a bummer indeed for many users right now.
Ive tried that again though, and no, it does not work.
I ll stick with the changes you suggested earlier, they are super reliable at this point.
Fingers crossed they dont change that again.