2022-09-06, 07:27
(2022-09-06, 07:18)TimeZone Wrote: Introduce a new font.
Added this line of code to the font.xml
xml:
<!-- introduce new clock font for minutes -->
<font>
<name>Font_timeZone_minutes</name>
<filename>Quicksand.ttf</filename>
<linespacing>0.80</linespacing>
<size>43</size>
</font>
<!-- introduce new clock font for hours -->
<font>
<name>Font_timeZone_hours</name>
<filename>Quicksand.ttf</filename>
<linespacing>0.85</linespacing>
<size>56</size>
</font>
Then Modified the clock code in home.xml to this. You can find this by searching for $INFO[System.Time(hh)]. Remember to modify both hours and minutes
xml:
<control type="label">
<align>left</align>
<width min="20" max="200">auto</width>
<height>40</height>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<font>Font_timeZone_hours</font>
<label>$INFO[System.Time(hh)]</label>
</control>
<control type="label">
<align>left</align>
<width min="20" max="200">auto</width>
<height>34</height>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<font>Font_timeZone_minutes</font>
<label>:$INFO[System.Time(mm)]</label>
</control>