Draw the icons with sixteen shades: the power ring on the CYD is a ring again (0.2.75)
The Material Design Icons fonts of both boards had no bpp, so ESPHome rendered them at its default of one bit per pixel while the text fonts already had four. On the CYD, at 18 and 28 px, a thin stroke such as the ring of mdi:power came out lumpy and uneven, and every other icon had a ragged edge. All four icon fonts of both profiles now say bpp: 4; the icon generator and its test keep that line. Costs the CYD 95 KB of flash (90 % of the update slot in use on top of 0.2.74), no RAM. App 0.2.75, firmware 0.2.63. Test results in docs/TEST_RESULTS_0275.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
############################################################
|
||||
|
||||
substitutions:
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.62"
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.63"
|
||||
# A tap survives a finger that drifts up to this far (320 px over 58 mm: 1 cm); further is a swipe.
|
||||
TOUCH_MOVE_LIMIT_PX: "56"
|
||||
# Shortest contact that counts as a tap; a resistive panel bounces, a capacitive one does not.
|
||||
@@ -934,6 +934,7 @@ font:
|
||||
- file: 'fonts/materialdesignicons-webfont.ttf'
|
||||
id: materialdesign_icons
|
||||
size: 28
|
||||
bpp: 4
|
||||
glyphs: &tile_icons # GENERATED by tools/generate_icons.py from screen_manager/app/tile_icons.py
|
||||
- "\U000F0335" # lightbulb
|
||||
- "\U000F1253" # lightbulb-group
|
||||
@@ -1248,6 +1249,7 @@ font:
|
||||
- file: 'fonts/materialdesignicons-webfont.ttf'
|
||||
id: materialdesign_icons_mini
|
||||
size: 18
|
||||
bpp: 4
|
||||
glyphs: *tile_icons
|
||||
|
||||
# The large icon of a card that takes the whole page (firmware 0.2.62+): the domain icons only,
|
||||
@@ -1255,6 +1257,7 @@ font:
|
||||
- file: 'fonts/materialdesignicons-webfont.ttf'
|
||||
id: materialdesign_icons_big
|
||||
size: 40
|
||||
bpp: 4
|
||||
glyphs: &tile_icons_big # GENERATED by tools/generate_icons.py from screen_manager/app/tile_icons.py
|
||||
- "\U000F0335" # lightbulb
|
||||
- "\U000F001B" # air-conditioner
|
||||
@@ -1291,6 +1294,7 @@ font:
|
||||
- file: 'fonts/materialdesignicons-webfont.ttf'
|
||||
id: watch_icon
|
||||
size: 12
|
||||
bpp: 4
|
||||
glyphs: *tile_icons
|
||||
|
||||
# Make memory visible: this board has no PSRAM, so the free heap determines
|
||||
|
||||
Reference in New Issue
Block a user