mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
The fixes of ptaru/nspanel-terminal#1 are released in v0.4.0, so the fork is no longer needed. The page arrows get an 88x64 touch area; grid pages and the thermostat move their content below it. The clock font gets '-' for the placeholder shown while connecting.
22 lines
434 B
YAML
22 lines
434 B
YAML
# Page switch arrow in a top corner; floats over the page's flex layout
|
|
# vars: icon, align, x, to (page id), hidden
|
|
obj:
|
|
floating: true
|
|
hidden: ${hidden}
|
|
align: ${align}
|
|
x: ${x}
|
|
y: -16
|
|
width: 88
|
|
height: 64
|
|
bg_opa: TRANSP
|
|
border_width: 0
|
|
pad_all: 0
|
|
on_click:
|
|
- lvgl.page.show: ${to}
|
|
widgets:
|
|
- label:
|
|
text: "${icon}"
|
|
text_font: icon_s
|
|
text_color: 0xB4B4BA
|
|
align: CENTER
|