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:
@@ -3,7 +3,7 @@
|
||||
# Source profile for packages/guition.yaml (tools/generate_packages.py); see docs/GUITION.md.
|
||||
# A screen gets its tiles from the ESP Screen Manager add-on while it runs. The CYD is its own profile.
|
||||
substitutions:
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.62"
|
||||
SCREEN_FIRMWARE_VERSION: "0.2.63"
|
||||
# 0: no drift limit; LVGL decides, releasing inside the tile is a tap, leaving it is not
|
||||
# (like iOS). The CYD keeps a limit because its resistive panel jumps.
|
||||
TOUCH_MOVE_LIMIT_PX: "0"
|
||||
@@ -894,6 +894,7 @@ font:
|
||||
- file: "https://raw.githubusercontent.com/MaxGramser/homeassistant_espscreen/main/fonts/materialdesignicons-webfont.ttf"
|
||||
id: materialdesign_icons
|
||||
size: 42
|
||||
bpp: 4
|
||||
glyphs: &tile_icons # GENERATED by tools/generate_icons.py from screen_manager/app/tile_icons.py
|
||||
- "\U000F0335" # lightbulb
|
||||
- "\U000F1253" # lightbulb-group
|
||||
@@ -1208,6 +1209,7 @@ font:
|
||||
- file: "https://raw.githubusercontent.com/MaxGramser/homeassistant_espscreen/main/fonts/materialdesignicons-webfont.ttf"
|
||||
id: materialdesign_icons_mini
|
||||
size: 26
|
||||
bpp: 4
|
||||
glyphs: *tile_icons
|
||||
|
||||
# The large icon of a card that takes the whole page (firmware 0.2.62+): the domain icons only,
|
||||
@@ -1215,6 +1217,7 @@ font:
|
||||
- file: "https://raw.githubusercontent.com/MaxGramser/homeassistant_espscreen/main/fonts/materialdesignicons-webfont.ttf"
|
||||
id: materialdesign_icons_big
|
||||
size: 64
|
||||
bpp: 4
|
||||
glyphs: &tile_icons_big # GENERATED by tools/generate_icons.py from screen_manager/app/tile_icons.py
|
||||
- "\U000F0335" # lightbulb
|
||||
- "\U000F001B" # air-conditioner
|
||||
@@ -1251,6 +1254,7 @@ font:
|
||||
- file: "https://raw.githubusercontent.com/MaxGramser/homeassistant_espscreen/main/fonts/materialdesignicons-webfont.ttf"
|
||||
id: watch_icon
|
||||
size: 18
|
||||
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