wassy92x / lovelace-digital-clock

A custom digital clock card for Home Assistant
MIT License
96 stars 17 forks source link

Possibility to change fontsize #4

Closed rogerbille closed 3 years ago

rogerbille commented 3 years ago

Thanks for your card. I would like to use this on my wallpanel however I would need a larger font. The time (firstline need to baout 3x larger). I would like to see an option to set the fontsize for both the first and second line. The card height either need to autoadjust so the text can be seen or it is also configurable. E.g.

type: 'custom:digital-clock'
dateFormat:
  weekday: 'long'
  day: '2-digit'
  month: 'short'
  fontsize: 12px
timeFormat:
  hour: '2-digit'
  minute: '2-digit'
  fontsize: 36px
leddy231 commented 3 years ago

I have used card-mod to manually set the font size https://github.com/thomasloven/lovelace-card-mod

wassy92x commented 3 years ago

If you like to change the font size please use card-mod.

rogerbille commented 3 years ago

Thanks, I have found an other solution.