Giter VIP home page Giter VIP logo

Comments (9)

redphx avatar redphx commented on June 1, 2024 2

@sotima @totalitarian you should be able to change icon size with mushroom 1.8.1.
For example:

Mushroom:
    mush-chip-icon-size: 0.6em
    mush-chip-font-size: 0.4em

    mush-icon-size: 54px
    
    modes:
        light: {}
        dark: {}

from lovelace-mushroom-themes.

piitaya avatar piitaya commented on June 1, 2024 2

There is a PR (work in progress) for that : piitaya/lovelace-mushroom#423

But for now, you can define --icon-size using card_mod :

type: custom:mushroom-entity-card
entity: light.kitchen_light
card_mod:
  style: |
    ha-card {
      --icon-size: 54px;
    }

from lovelace-mushroom-themes.

sotima avatar sotima commented on June 1, 2024 1

Will try this as soon as possible! Thanks a lot!

from lovelace-mushroom-themes.

totalitarian avatar totalitarian commented on June 1, 2024

I'd love this too

from lovelace-mushroom-themes.

totalitarian avatar totalitarian commented on June 1, 2024

Works as described. Many thanks!

Is it possible to only apply this to certain cards though? I only want to change the icon size for 2 out of 5 cards on a view...

from lovelace-mushroom-themes.

totalitarian avatar totalitarian commented on June 1, 2024

Superstar! One last question if I may... How to remove the blue circle but keep the icon?
image

from lovelace-mushroom-themes.

piitaya avatar piitaya commented on June 1, 2024

We can't but you're not the first to ask it. Maybe we can add an icon-shape-opacity variable to allow user to hide the circle by setting icon-shape-opacity: 0 😅

from lovelace-mushroom-themes.

totalitarian avatar totalitarian commented on June 1, 2024

We can't but you're not the first to ask it. Maybe we can add an icon-shape-opacity variable to allow user to hide the circle by setting icon-shape-opacity: 0 😅

That would be great!

from lovelace-mushroom-themes.

Shannondalebreaux avatar Shannondalebreaux commented on June 1, 2024

There is a PR (work in progress) for that : piitaya/lovelace-mushroom#423

But for now, you can define --icon-size using card_mod :

type: custom:mushroom-entity-card
entity: light.kitchen_light
card_mod:
  style: |
    ha-card {
      --icon-size: 54px;
    }

I tried this but I get this error.
Screenshot_20230217-104255_Home Assistant

Visual editor is not supported for this configuration:
At path: card_mod -- Expected a value of type never, but received: [object Object]

type: custom:mushroom-entity-card
entity: switch.mae_fan
card_mod:
style: |
ha-card {
--icon-size: 54px;
}

You can still edit your config in YAML.

from lovelace-mushroom-themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.