Updates to ui
This commit is contained in:
@@ -104,6 +104,7 @@ font:
|
||||
- "\U000F0335" # mdi:lightbulb
|
||||
- "\U000F0425" # mdi:power
|
||||
- "\U000F0426" # mdi:power-plug
|
||||
- "\U000F0079" # mdi:battery
|
||||
# Navigation bar icons
|
||||
- "\U000F04B9" # mdi:sofa
|
||||
- "\U000F06B5" # mdi:lamp
|
||||
|
||||
@@ -14,7 +14,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003258) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_family_room_tv_stand);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -28,7 +28,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x390035) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_small_family_room_lamp);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -42,7 +42,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x690005) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x3D0002) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_family_room_standing_lamp);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -56,7 +56,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003258) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_living_room_main_light);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -78,8 +78,8 @@ text_sensor:
|
||||
auto *btn1 = id(btn_living_room_patio_light);
|
||||
auto *btn2 = id(btn_outside_patio_light);
|
||||
if (x == "on") {
|
||||
lv_obj_set_style_text_color(btn1, lv_color_hex(0x2C1600), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
lv_obj_set_style_text_color(btn2, lv_color_hex(0x003258), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
lv_obj_set_style_text_color(btn1, lv_color_hex(0x1A0C00), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
lv_obj_set_style_text_color(btn2, lv_color_hex(0x001A33), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
} else {
|
||||
lv_obj_set_style_text_color(btn1, off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
lv_obj_set_style_text_color(btn2, off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
@@ -95,7 +95,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003258) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_kitchen_sink_light);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -109,7 +109,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003258) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_office_lamp);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -123,7 +123,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x390035) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_office_led_strip);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -137,7 +137,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003258) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_garage_cam_light);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -151,7 +151,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x2C1600) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_office_echo_plug);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -165,7 +165,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003825) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_office_end_table_lamp_outlet);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -179,7 +179,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x381E72) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1E0F3F) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_office_wax_warmer_outlet);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -193,7 +193,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x390035) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_outside_lamppost_outlet_1);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -207,7 +207,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x2C1600) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_outside_lamppost_outlet_2);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -221,7 +221,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003825) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_outside_porch_decor_outlet);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -235,7 +235,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003825) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_living_room_garland_switch);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -249,7 +249,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x381E72) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1E0F3F) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_living_room_calendar_switch);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -263,7 +263,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x003258) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_upstairs_airquality_oled);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -277,7 +277,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x390035) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_upstairs_camera_motion);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -291,7 +291,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x390035) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_garage_fume_exhaust_fan);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
- platform: homeassistant
|
||||
@@ -305,7 +305,7 @@ text_sensor:
|
||||
state:
|
||||
checked: !lambda return x == "on";
|
||||
- lambda: |-
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x2C1600) : lv_color_hex(0xE3E2E6);
|
||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
||||
auto *btn = id(btn_garage_resin_printer_heater);
|
||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xA8C7FA
|
||||
border_opa: 100%
|
||||
text_color: 0x003258
|
||||
text_color: 0x001A33
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -185,7 +185,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFD7F1
|
||||
border_opa: 100%
|
||||
text_color: 0x390035
|
||||
text_color: 0x22001F
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -227,7 +227,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFB4AB
|
||||
border_opa: 100%
|
||||
text_color: 0x690005
|
||||
text_color: 0x3D0002
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -498,7 +498,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xA8C7FA
|
||||
border_opa: 100%
|
||||
text_color: 0x003258
|
||||
text_color: 0x001A33
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -540,7 +540,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFDCBE
|
||||
border_opa: 100%
|
||||
text_color: 0x2C1600
|
||||
text_color: 0x1A0C00
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -582,7 +582,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0x66F9B9
|
||||
border_opa: 100%
|
||||
text_color: 0x003825
|
||||
text_color: 0x001F15
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -624,7 +624,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xD0BCFF
|
||||
border_opa: 100%
|
||||
text_color: 0x381E72
|
||||
text_color: 0x1E0F3F
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -895,7 +895,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xA8C7FA
|
||||
border_opa: 100%
|
||||
text_color: 0x003258
|
||||
text_color: 0x001A33
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -1166,7 +1166,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xA8C7FA
|
||||
border_opa: 100%
|
||||
text_color: 0x003258
|
||||
text_color: 0x001A33
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -1208,7 +1208,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFD7F1
|
||||
border_opa: 100%
|
||||
text_color: 0x390035
|
||||
text_color: 0x22001F
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -1479,7 +1479,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xA8C7FA
|
||||
border_opa: 100%
|
||||
text_color: 0x003258
|
||||
text_color: 0x001A33
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -1521,7 +1521,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFD7F1
|
||||
border_opa: 100%
|
||||
text_color: 0x390035
|
||||
text_color: 0x22001F
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -1563,7 +1563,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFDCBE
|
||||
border_opa: 100%
|
||||
text_color: 0x2C1600
|
||||
text_color: 0x1A0C00
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -1605,7 +1605,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0x66F9B9
|
||||
border_opa: 100%
|
||||
text_color: 0x003825
|
||||
text_color: 0x001F15
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -1647,7 +1647,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xD0BCFF
|
||||
border_opa: 100%
|
||||
text_color: 0x381E72
|
||||
text_color: 0x1E0F3F
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -1918,7 +1918,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xA8C7FA
|
||||
border_opa: 100%
|
||||
text_color: 0x003258
|
||||
text_color: 0x001A33
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -1960,7 +1960,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFD7F1
|
||||
border_opa: 100%
|
||||
text_color: 0x390035
|
||||
text_color: 0x22001F
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -2002,7 +2002,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFDCBE
|
||||
border_opa: 100%
|
||||
text_color: 0x2C1600
|
||||
text_color: 0x1A0C00
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -2273,7 +2273,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xA8C7FA
|
||||
border_opa: 100%
|
||||
text_color: 0x003258
|
||||
text_color: 0x001A33
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: light.toggle
|
||||
@@ -2315,7 +2315,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFD7F1
|
||||
border_opa: 100%
|
||||
text_color: 0x390035
|
||||
text_color: 0x22001F
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -2357,7 +2357,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0xFFDCBE
|
||||
border_opa: 100%
|
||||
text_color: 0x2C1600
|
||||
text_color: 0x1A0C00
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
@@ -2399,7 +2399,7 @@ lvgl:
|
||||
bg_opa: 100%
|
||||
border_color: 0x66F9B9
|
||||
border_opa: 100%
|
||||
text_color: 0x003825
|
||||
text_color: 0x001F15
|
||||
on_click:
|
||||
- homeassistant.service:
|
||||
service: switch.toggle
|
||||
|
||||
Reference in New Issue
Block a user