Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customisable font sizes for card title, entities and target temperature. #48

Closed
aheath70 opened this issue Apr 9, 2019 · 6 comments
Closed

Comments

@aheath70
Copy link

aheath70 commented Apr 9, 2019

Like this card way better than the stock thermostat card - awesome work.
I would really like to be able to customise the font sizes used. The card title and target temperature are quite large and the custom entities (like current temp) are a little too small.

@nervetattoo
Copy link
Owner

Let me know if the docs added in 0.23 is sufficient. It also moves the sensor values font size into a CSS var while also slightly increasing that font size as I realised I agreed that it was a teeny weeny bit small :)

@aheath70
Copy link
Author

aheath70 commented May 20, 2019 via email

@flyboy013
Copy link

I'm trying to change the size of the target temperature. The documentation update helped, but I wasn't successful. I tried wrapping the simple-thermostat card in card-modder to change the font size, but this didn't work. Can you provide insight or example?

      - type: custom:card-modder
        style:
          --paper-font-display3_-_font-size: 32px
        card:
          type: 'custom:simple-thermostat'
          name: Living Room
          entity: climate.living_room

@nervetattoo
Copy link
Owner

You need to change the vars listed in the first column in the docs. Like this for example:

type: custom:card-modder
style:
  --st-font-size-xl: 20px
card:
  type: custom:simple-thermostat

How can I make this clearer? Should I just remove the default value or move it as the last column instead?

@flyboy013
Copy link

The card-modder examples show settings "paper..." values

- type: custom:card-modder
  style:
    --paper-card-background-color: rgba(0, 100, 0, 0.2)
    --paper-item-icon-color: white

which is what threw my for a loop when I saw those variables in your documentation. A simple example in the documentation such as what you provided in your reply would go along way.

Thanks again for the wonderful card!

nervetattoo added a commit that referenced this issue May 22, 2019
@aheath70
Copy link
Author

Updates the documentation make it very clear. Thanks for that. Also thanks for the awesome card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants