mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
nspanel_terminal: upstream v0.4.0, larger arrow touch areas, '-' in the clock font
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.
This commit is contained in:
1 parent
cafa2da954
commit
e3687d321d
4 files changed
+13
-10
No files matched your search
@@ -3,6 +3,8 @@
|
|||||||
id: ${id}
|
id: ${id}
|
||||||
skip: ${skip}
|
skip: ${skip}
|
||||||
styles: page_style
|
styles: page_style
|
||||||
|
# header 64 px high (arrow touch area), 2x112 tiles + gap below, 8 px left at the bottom
|
||||||
|
pad_bottom: 8
|
||||||
layout:
|
layout:
|
||||||
type: FLEX
|
type: FLEX
|
||||||
flex_flow: ROW_WRAP
|
flex_flow: ROW_WRAP
|
||||||
@@ -12,6 +14,8 @@ widgets:
|
|||||||
text_font: font_s
|
text_font: font_s
|
||||||
text_color: 0xB4B4BA
|
text_color: 0xB4B4BA
|
||||||
width: 100%
|
width: 100%
|
||||||
|
height: 48
|
||||||
|
pad_top: 14
|
||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
- <<: !include {file: page_arrow.yaml, vars: {icon: "\U000F0141", align: TOP_LEFT, x: -16, to: "${prev}", hidden: false}}
|
- <<: !include {file: page_arrow.yaml, vars: {icon: "\U000F0141", align: TOP_LEFT, x: -16, to: "${prev}", hidden: false}}
|
||||||
- <<: !include {file: page_arrow.yaml, vars: {icon: "\U000F0142", align: TOP_RIGHT, x: 16, to: "${next}", hidden: "${skip}"}}
|
- <<: !include {file: page_arrow.yaml, vars: {icon: "\U000F0142", align: TOP_RIGHT, x: 16, to: "${next}", hidden: "${skip}"}}
|
||||||
@@ -6,8 +6,8 @@ obj:
|
|||||||
align: ${align}
|
align: ${align}
|
||||||
x: ${x}
|
x: ${x}
|
||||||
y: -16
|
y: -16
|
||||||
width: 72
|
width: 88
|
||||||
height: 52
|
height: 64
|
||||||
bg_opa: TRANSP
|
bg_opa: TRANSP
|
||||||
border_width: 0
|
border_width: 0
|
||||||
pad_all: 0
|
pad_all: 0
|
||||||
|
|||||||
@@ -48,8 +48,7 @@ psram:
|
|||||||
ignore_not_found: false
|
ignore_not_found: false
|
||||||
|
|
||||||
external_components:
|
external_components:
|
||||||
# fork with the fixes of ptaru/nspanel-terminal#1 (TFT upload, faster redraws); upstream once merged
|
- source: github://ptaru/nspanel-terminal@v0.4.0
|
||||||
- source: github://randybb/nspanel-terminal@upload-and-redraw-fixes
|
|
||||||
components: [nspanel_terminal]
|
components: [nspanel_terminal]
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
@@ -215,7 +214,7 @@ font:
|
|||||||
id: font_clock
|
id: font_clock
|
||||||
size: 112
|
size: 112
|
||||||
bpp: 4
|
bpp: 4
|
||||||
glyphs: "0123456789:"
|
glyphs: "0123456789:-"
|
||||||
- file: "gfonts://Inter@500"
|
- file: "gfonts://Inter@500"
|
||||||
id: font_big
|
id: font_big
|
||||||
size: 44
|
size: 44
|
||||||
@@ -822,8 +821,8 @@ lvgl:
|
|||||||
- obj:
|
- obj:
|
||||||
align: LEFT_MID
|
align: LEFT_MID
|
||||||
x: -16
|
x: -16
|
||||||
width: 72
|
width: 88
|
||||||
height: 52
|
height: 64
|
||||||
bg_opa: TRANSP
|
bg_opa: TRANSP
|
||||||
border_width: 0
|
border_width: 0
|
||||||
pad_all: 0
|
pad_all: 0
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ lvgl:
|
|||||||
id: ${id}_power
|
id: ${id}_power
|
||||||
align: TOP_RIGHT
|
align: TOP_RIGHT
|
||||||
x: -90
|
x: -90
|
||||||
y: 36
|
y: 56
|
||||||
width: 82
|
width: 82
|
||||||
height: 44
|
height: 44
|
||||||
styles: tile_style
|
styles: tile_style
|
||||||
@@ -169,7 +169,7 @@ lvgl:
|
|||||||
id: ${id}_boiler_button
|
id: ${id}_boiler_button
|
||||||
align: TOP_RIGHT
|
align: TOP_RIGHT
|
||||||
x: 0
|
x: 0
|
||||||
y: 36
|
y: 56
|
||||||
width: 82
|
width: 82
|
||||||
height: 44
|
height: 44
|
||||||
styles: tile_style
|
styles: tile_style
|
||||||
@@ -202,7 +202,7 @@ lvgl:
|
|||||||
disabled:
|
disabled:
|
||||||
text_color: 0x48484A
|
text_color: 0x48484A
|
||||||
align: TOP_RIGHT
|
align: TOP_RIGHT
|
||||||
y: 92
|
y: 112
|
||||||
width: 172
|
width: 172
|
||||||
options: ["-"]
|
options: ["-"]
|
||||||
styles: tile_style
|
styles: tile_style
|
||||||
|
|||||||
Reference in new issue
Block a user