wassy92x / lovelace-digital-clock

A custom digital clock card for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibility to change fontsize

rogerbille opened this issue · comments

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

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

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

Thanks, I have found an other solution.