mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
dark/light theme
This commit is contained in:
@@ -44,7 +44,6 @@ const ext_img_desc_t images[51] = {
|
||||
{ "reboot_image", &img_reboot_image },
|
||||
{ "shutdown_image", &img_shutdown_image },
|
||||
{ "home_clock_image", &img_home_clock_image },
|
||||
{ "mqtt_logo_image", &img_mqtt_logo_image },
|
||||
{ "home_ethernet_button_image", &img_home_ethernet_button_image },
|
||||
{ "top_trace_route_image", &img_top_trace_route_image },
|
||||
{ "top_node_detector_image", &img_top_node_detector_image },
|
||||
@@ -52,4 +51,5 @@ const ext_img_desc_t images[51] = {
|
||||
{ "signal_slider_image", &img_signal_slider_image },
|
||||
{ "signal_full_image", &img_signal_full_image },
|
||||
{ "battery_plug_image", &img_battery_plug_image },
|
||||
{ "mqtt_logo2_image", &img_mqtt_logo2_image },
|
||||
};
|
||||
|
||||
@@ -50,7 +50,6 @@ extern const lv_img_dsc_t img_settings_trash_image;
|
||||
extern const lv_img_dsc_t img_reboot_image;
|
||||
extern const lv_img_dsc_t img_shutdown_image;
|
||||
extern const lv_img_dsc_t img_home_clock_image;
|
||||
extern const lv_img_dsc_t img_mqtt_logo_image;
|
||||
extern const lv_img_dsc_t img_home_ethernet_button_image;
|
||||
extern const lv_img_dsc_t img_top_trace_route_image;
|
||||
extern const lv_img_dsc_t img_top_node_detector_image;
|
||||
@@ -58,6 +57,7 @@ extern const lv_img_dsc_t img_battery_empty_image;
|
||||
extern const lv_img_dsc_t img_signal_slider_image;
|
||||
extern const lv_img_dsc_t img_signal_full_image;
|
||||
extern const lv_img_dsc_t img_battery_plug_image;
|
||||
extern const lv_img_dsc_t img_mqtt_logo2_image;
|
||||
|
||||
#ifndef EXT_IMG_DESC_T
|
||||
#define EXT_IMG_DESC_T
|
||||
|
||||
+205
-452
File diff suppressed because it is too large
Load Diff
@@ -3,3 +3,164 @@
|
||||
#include "fonts.h"
|
||||
|
||||
|
||||
lv_style_t style_btn_default;
|
||||
lv_style_t style_btn_active;
|
||||
lv_style_t style_btn_pressed;
|
||||
|
||||
#if 0 // see Themes.cpp
|
||||
|
||||
void apply_style_top_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xff67ea94), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff212121), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff67ea94), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfff8f8f8), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffafafa), LV_PART_MAIN | LV_STATE_PRESSED);
|
||||
};
|
||||
void apply_style_settings_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfff0f0f0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_color(obj, lv_color_hex(0xff7e7e7e), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff979797), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, 250, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff003c9f), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_node_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffffff8), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff979797), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff212121), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_home_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffafaf4), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(0xff67ea94), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xffd0d0d0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff101010), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_settings_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffafaf4), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(0xff67ea94), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xffd0d0d0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff294337), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_main_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(0xff757575), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff67ea94), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(obj, LV_BORDER_SIDE_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfff4f4ee), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff101010), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_color(obj, lv_color_hex(0xffc0c0c0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_new_message_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff888888), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xffffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(obj, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff294337), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_chat_message_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff888888), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffbfce9), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(obj, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_tab_view_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfff4f4f4), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff003c9f), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_drop_down_style(lv_obj_t *obj) {
|
||||
};
|
||||
void apply_style_bw_label_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff212121), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_color_label_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff003c9f), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_top_image_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xff67ea94), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_image_recolor(obj, lv_color_hex(0xff212121), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_image_recolor_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(0xff212121), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_home_container_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xffaaaaaa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(obj, LV_BORDER_SIDE_FULL, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffafaf4), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_color(obj, lv_color_hex(0xff999999), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_16, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff294337), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_button_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xffffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_alert_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffbfbfb), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_main_screen_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xffe0e0e0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_node_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffffff8), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_channel_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffafaf4), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xffd0d0d0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff101010), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_button_matrix_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff67ea94), LV_PART_ITEMS | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffffff8), LV_PART_ITEMS | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff212121), LV_PART_ITEMS | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xffe0e0e0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_spinner_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(0xff000000), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(0xff000000), LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 4, LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_settings_label_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(0xff808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xfffffff8), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
@@ -3,10 +3,38 @@
|
||||
|
||||
#include "lvgl.h"
|
||||
|
||||
// styles for tabview buttons
|
||||
extern lv_style_t style_btn_default;
|
||||
extern lv_style_t style_btn_active;
|
||||
extern lv_style_t style_btn_pressed;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void apply_style_top_panel_style(lv_obj_t *obj);
|
||||
extern void apply_style_panel_style(lv_obj_t *obj);
|
||||
extern void apply_style_settings_panel_style(lv_obj_t *obj);
|
||||
extern void apply_style_node_panel_style(lv_obj_t *obj);
|
||||
extern void apply_style_home_button_style(lv_obj_t *obj);
|
||||
extern void apply_style_settings_button_style(lv_obj_t *obj);
|
||||
extern void apply_style_main_button_style(lv_obj_t *obj);
|
||||
extern void apply_style_new_message_style(lv_obj_t *obj);
|
||||
extern void apply_style_chat_message_style(lv_obj_t *obj);
|
||||
extern void apply_style_tab_view_style(lv_obj_t *obj);
|
||||
extern void apply_style_drop_down_style(lv_obj_t *obj);
|
||||
extern void apply_style_bw_label_style(lv_obj_t *obj);
|
||||
extern void apply_style_color_label_style(lv_obj_t *obj);
|
||||
extern void apply_style_top_image_style(lv_obj_t *obj);
|
||||
extern void apply_style_home_container_style(lv_obj_t *obj);
|
||||
extern void apply_style_button_panel_style(lv_obj_t *obj);
|
||||
extern void apply_style_alert_panel_style(lv_obj_t *obj);
|
||||
extern void apply_style_main_screen_style(lv_obj_t *obj);
|
||||
extern void apply_style_node_button_style(lv_obj_t *obj);
|
||||
extern void apply_style_channel_button_style(lv_obj_t *obj);
|
||||
extern void apply_style_button_matrix_style(lv_obj_t *obj);
|
||||
extern void apply_style_spinner_style(lv_obj_t *obj);
|
||||
extern void apply_style_settings_label_style(lv_obj_t *obj);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
|
||||
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
|
||||
#include "lvgl.h"
|
||||
#elif defined(LV_BUILD_TEST)
|
||||
#include "../lvgl.h"
|
||||
#else
|
||||
#include "lvgl/lvgl.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef LV_ATTRIBUTE_MEM_ALIGN
|
||||
#define LV_ATTRIBUTE_MEM_ALIGN
|
||||
#endif
|
||||
|
||||
#ifndef LV_ATTRIBUTE_IMG_DUST
|
||||
#define LV_ATTRIBUTE_IMG_DUST
|
||||
#endif
|
||||
|
||||
static const
|
||||
LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_DUST
|
||||
uint8_t img_mqtt_logo2_image_map[] = {
|
||||
|
||||
0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,
|
||||
0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xba,0xd6,0xb6,0xb5,0x79,0xce,0x79,0xce,0x79,0xce,0x79,0xce,0x9a,0xd6,0xdb,0xde,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0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ff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe8,0xb3,0xa0,0xa2,0xa4,0xa4,0xa4,0xa4,0xa3,0xb3,0xf4,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf6,0xc3,0x6b,0x1d,0x03,0x04,0x06,0x06,0x05,0x0c,0x62,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0xce,0x68,0x11,0x00,0x00,0x00,0x00,0x00,0x35,0xc1,0xff,0xff,0xff,0xff,0xff,0xff,0xcd,0x90,0x9b,0xaf,0xc8,0xe2,0xf7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0xbf,0x47,0x02,0x00,0x00,0x00,0x00,0x1b,0xa6,0xff,0xff,0xff,0xff,0xff,
|
||||
0x90,0x00,0x00,0x04,0x0e,0x22,0x46,0x7b,0xba,0xec,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xef,0x87,0x14,0x00,0x00,0x00,0x00,0x10,0x98,0xfe,0xff,0xff,0xff,0x91,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x32,0x7f,0xd3,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xb9,0x2e,0x00,0x00,0x00,0x00,0x0e,0x9e,0xff,0xff,0xff,
|
||||
0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1a,0x6e,0xd4,0xff,0xff,0xff,0xff,0xff,0xff,0xd6,0x44,0x00,0x00,0x00,0x00,0x14,0xb2,0xff,0xff,0xa6,0x2e,0x23,0x16,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1e,0x89,0xee,0xff,0xff,0xff,0xff,0xff,0xe3,0x4f,0x00,0x00,0x00,0x00,0x24,0xce,0xff,
|
||||
0xf7,0xeb,0xe4,0xd6,0xbb,0x92,0x5b,0x25,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x47,0xcc,0xff,0xff,0xff,0xff,0xff,0xe6,0x4c,0x00,0x00,0x00,0x00,0x44,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0xe3,0xa7,0x50,0x0e,0x00,0x00,0x00,0x00,0x00,0x21,0xaa,0xff,0xff,0xff,0xff,0xff,0xe0,0x3c,0x00,0x00,0x00,0x03,0x9a,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xbd,0x52,0x07,0x00,0x00,0x00,0x00,0x10,0x94,0xfc,0xff,0xff,0xff,0xff,0xcd,0x24,0x00,0x00,0x02,0x91,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf6,0xa2,0x27,0x00,0x00,0x00,0x00,0x0b,0x90,0xfd,0xff,0xff,0xff,0xff,0xa9,0x0c,0x00,0x02,0x91,
|
||||
0xce,0x95,0xa6,0xc2,0xe2,0xfa,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xd6,0x4e,0x00,0x00,0x00,0x00,0x0d,0x9f,0xff,0xff,0xff,0xff,0xfc,0x70,0x00,0x02,0x91,0x90,0x00,0x02,0x0b,0x23,0x52,0x9b,0xe1,0xff,0xff,0xff,0xff,0xff,0xff,0xed,0x68,0x02,0x00,0x00,0x00,0x18,0xbd,0xff,0xff,0xff,0xff,0xe2,0x2f,0x00,0x91,
|
||||
0x91,0x02,0x00,0x00,0x00,0x00,0x01,0x27,0x83,0xe4,0xff,0xff,0xff,0xff,0xff,0xf4,0x6e,0x01,0x00,0x00,0x00,0x34,0xe1,0xff,0xff,0xff,0xff,0xa1,0x07,0x91,0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0xae,0xfd,0xff,0xff,0xff,0xff,0xf2,0x5d,0x00,0x00,0x00,0x00,0x6b,0xfb,0xff,0xff,0xff,0xf2,0x46,0x8d,
|
||||
0xa4,0x28,0x19,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x0d,0x82,0xf6,0xff,0xff,0xff,0xff,0xe4,0x3c,0x00,0x00,0x00,0x0d,0xb7,0xff,0xff,0xff,0xff,0xab,0x99,0xf6,0xe7,0xd9,0xba,0x81,0x39,0x06,0x00,0x00,0x00,0x00,0x03,0x70,0xf4,0xff,0xff,0xff,0xff,0xc0,0x15,0x00,0x00,0x00,0x48,0xf3,0xff,0xff,0xff,0xef,0xd3,
|
||||
0xff,0xff,0xff,0xff,0xff,0xef,0xa7,0x38,0x00,0x00,0x00,0x00,0x02,0x7a,0xfb,0xff,0xff,0xff,0xff,0x7c,0x00,0x00,0x00,0x07,0xad,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe8,0x71,0x07,0x00,0x00,0x00,0x09,0xa0,0xff,0xff,0xff,0xff,0xe1,0x2a,0x00,0x00,0x00,0x50,0xf8,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfa,0x8b,0x09,0x00,0x00,0x00,0x24,0xd6,0xff,0xff,0xff,0xff,0x89,0x00,0x00,0x00,0x12,0xcb,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x7f,0x02,0x00,0x00,0x00,0x69,0xfd,0xff,0xff,0xff,0xda,0x1f,0x00,0x00,0x00,0x85,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf2,0x4f,0x00,0x00,0x00,0x15,0xcc,0xff,0xff,0xff,0xfd,0x5f,0x00,0x00,0x00,0x44,0xf6,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc6,0x14,0x00,0x00,0x00,0x79,0xff,0xff,0xff,0xff,0xa5,0x03,0x00,0x00,0x1a,0xd9,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0x61,0x00,0x00,0x00,0x33,0xed,0xff,0xff,0xff,0xd6,0x18,0x00,0x00,0x06,0xb3,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xb3,0x07,0x00,0x00,0x0e,0xc7,0xff,0xff,0xff,0xf1,0x37,0x00,0x00,0x00,0x8e,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe4,0x25,0x00,0x00,0x00,0x9c,0xff,0xff,0xff,0xfd,0x57,0x00,0x00,0x00,0x6f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x48,0x00,0x00,0x00,0x7b,0xff,0xff,0xff,0xff,0x70,0x00,0x00,0x00,0x5a,0xfe,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x63,0x01,0x05,0x01,0x6a,0xff,0xff,0xff,0xff,0x82,0x01,0x05,0x01,0x51,0xfb,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc8,0x9f,0xa1,0x9f,0xc5,0xff,0xff,0xff,0xff,0xd2,0xa0,0xa1,0xa0,0xbc,0xfd,0xff,0xff,
|
||||
|
||||
};
|
||||
|
||||
const lv_img_dsc_t img_mqtt_logo2_image = {
|
||||
.header.magic = LV_IMAGE_HEADER_MAGIC,
|
||||
.header.cf = LV_COLOR_FORMAT_RGB565A8,
|
||||
.header.flags = 0,
|
||||
.header.w = 30,
|
||||
.header.h = 30,
|
||||
.header.stride = 60,
|
||||
.data_size = 2700,
|
||||
.data = img_mqtt_logo2_image_map,
|
||||
};
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
|
||||
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
|
||||
#include "lvgl.h"
|
||||
#elif defined(LV_BUILD_TEST)
|
||||
#include "../lvgl.h"
|
||||
#else
|
||||
#include "lvgl/lvgl.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef LV_ATTRIBUTE_MEM_ALIGN
|
||||
#define LV_ATTRIBUTE_MEM_ALIGN
|
||||
#endif
|
||||
|
||||
#ifndef LV_ATTRIBUTE_IMG_DUST
|
||||
#define LV_ATTRIBUTE_IMG_DUST
|
||||
#endif
|
||||
|
||||
static const
|
||||
LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_DUST
|
||||
uint8_t img_mqtt_logo_image_map[] = {
|
||||
|
||||
0x86,0x31,0xcb,0x5a,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0x0c,0x63,0xc7,0x39,0x65,0x29,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0xc7,0x39,0x4d,0x6b,0xcf,0x7b,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0xae,0x73,0xeb,0x5a,0x86,0x31,
|
||||
0xcb,0x5a,0x79,0xce,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xba,0xd6,0x96,0xb5,0xae,0x73,0xe7,0x39,0x65,0x29,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x2c,0x63,0x18,0xc6,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0x79,0xce,0xeb,0x5a,
|
||||
0xcf,0x7b,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xf7,0xbd,0xae,0x73,0xc7,0x39,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x69,0x4a,0x75,0xad,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xcf,0x7b,
|
||||
0xaa,0x52,0x51,0x8c,0xb2,0x94,0x14,0xa5,0xb6,0xb5,0x59,0xce,0xdb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0x96,0xb5,0xeb,0x5a,0x86,0x31,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xe7,0x39,0xf3,0x9c,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xcf,0x7b,
|
||||
0x65,0x29,0x65,0x29,0x65,0x29,0x86,0x31,0xa6,0x31,0x08,0x42,0xcb,0x5a,0xf0,0x83,0x55,0xad,0x9a,0xd6,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x9a,0xd6,0x31,0x8c,0xc7,0x39,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xc7,0x39,0xb2,0x94,0xfb,0xde,0x1c,0xe7,0xfb,0xde,0xcf,0x7b,
|
||||
0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x65,0x29,0x65,0x29,0xa6,0x31,0x69,0x4a,0x30,0x84,0xf7,0xbd,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x55,0xad,0x49,0x4a,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xc7,0x39,0xd3,0x9c,0x1c,0xe7,0xfb,0xde,0xcf,0x7b,
|
||||
0x65,0x29,0x65,0x29,0x65,0x29,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x65,0x29,0x08,0x42,0xcf,0x7b,0x18,0xc6,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xf7,0xbd,0xcb,0x5a,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xe7,0x39,0x34,0xa5,0x1c,0xe7,0xcf,0x7b,
|
||||
0xe7,0x39,0x69,0x4a,0x49,0x4a,0xe7,0x39,0xa6,0x31,0x65,0x29,0x65,0x29,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x65,0x29,0x28,0x42,0x71,0x8c,0xba,0xd6,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x39,0xce,0xeb,0x5a,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0x28,0x42,0xd7,0xbd,0xcf,0x7b,
|
||||
0x8e,0x73,0x9a,0xd6,0x79,0xce,0x18,0xc6,0x96,0xb5,0x92,0x94,0x6d,0x6b,0x29,0x4a,0x86,0x31,0x65,0x29,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0x86,0x31,0x0c,0x63,0xf7,0xbd,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x59,0xce,0xcb,0x5a,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xcb,0x5a,0x2c,0x63,
|
||||
0xae,0x73,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0x59,0xce,0xf3,0x9c,0x0c,0x63,0xa7,0x39,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x28,0x42,0x34,0xa5,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x18,0xc6,0x8a,0x52,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0xa6,0x31,
|
||||
0xae,0x73,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xdb,0xde,0x75,0xad,0x0c,0x63,0x86,0x31,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xc7,0x39,0xd3,0x9c,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xb6,0xb5,0x08,0x42,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,
|
||||
0xcf,0x7b,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xba,0xd6,0xd3,0x9c,0x28,0x42,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xc7,0x39,0xb2,0x94,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xd3,0x9c,0xa6,0x31,0x86,0x31,0x86,0x31,0x86,0x31,
|
||||
0xaa,0x52,0x92,0x94,0x14,0xa5,0xb6,0xb5,0x79,0xce,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xf7,0xbd,0xeb,0x5a,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xc7,0x39,0x14,0xa5,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xdb,0xde,0x8e,0x73,0x65,0x29,0x86,0x31,0x86,0x31,
|
||||
0x65,0x29,0x65,0x29,0x86,0x31,0xa6,0x31,0x49,0x4a,0x4d,0x6b,0xd3,0x9c,0x79,0xce,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x79,0xce,0x6d,0x6b,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x08,0x42,0xb6,0xb5,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x18,0xc6,0x29,0x4a,0x65,0x29,0x86,0x31,
|
||||
0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x65,0x29,0x86,0x31,0x49,0x4a,0x71,0x8c,0x79,0xce,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xba,0xd6,0x6e,0x73,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0xcb,0x5a,0x79,0xce,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x92,0x94,0x86,0x31,0x86,0x31,
|
||||
0x65,0x29,0x65,0x29,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0x65,0x29,0xaa,0x52,0x55,0xad,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x9a,0xd6,0x2c,0x63,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0x10,0x84,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x9a,0xd6,0x8a,0x52,0x65,0x29,
|
||||
0xc7,0x39,0x49,0x4a,0xe7,0x39,0xa6,0x31,0x65,0x29,0x65,0x29,0x86,0x31,0x86,0x31,0x86,0x31,0x65,0x29,0xc7,0x39,0x71,0x8c,0xdb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x38,0xc6,0x69,0x4a,0x65,0x29,0x86,0x31,0x65,0x29,0xe7,0x39,0xb6,0xb5,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xb2,0x94,0x86,0x31,
|
||||
0x8e,0x73,0x79,0xce,0x18,0xc6,0x55,0xad,0x10,0x84,0x8a,0x52,0x86,0x31,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0x86,0x31,0x10,0x84,0xdb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x55,0xad,0xc7,0x39,0x65,0x29,0x86,0x31,0x65,0x29,0x4d,0x6b,0xdb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x79,0xce,0x8a,0x52,
|
||||
0xaf,0x7b,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x9a,0xd6,0xd3,0x9c,0x69,0x4a,0x65,0x29,0x86,0x31,0x86,0x31,0x65,0x29,0x86,0x31,0x51,0x8c,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xae,0x73,0x65,0x29,0x86,0x31,0x65,0x29,0xa7,0x39,0x75,0xad,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xae,0x73,
|
||||
0xae,0x73,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x59,0xce,0x8e,0x73,0x86,0x31,0x65,0x29,0x86,0x31,0x65,0x29,0xc7,0x39,0x34,0xa5,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x18,0xc6,0x08,0x42,0x65,0x29,0x86,0x31,0x65,0x29,0x6d,0x6b,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0xfb,0xde,0xae,0x73,
|
||||
0xae,0x73,0xfb,0xde,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xdb,0xde,0x10,0x84,0x86,0x31,0x65,0x29,0x86,0x31,0x65,0x29,0x69,0x4a,0x59,0xce,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0x1c,0xe7,0xef,0x7b,0x65,0x29,0x86,0x31,0x65,0x29,0x08,0x42,0x18,0xc6,0x1c,0x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xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xdb,0xde,0x2c,0x63,0x65,0x29,0x86,0x31,0x65,0x29,0xf0,0x83,0x1c,0xe7,0xfb,0xde,0xfb,0xde,0xfb,0xde,0xae,0x73,0x65,0x29,0x86,0x31,0x65,0x29,0x6d,0x6b,0xfb,0xde,0x79,0xce,0xcb,0x5a,
|
||||
0x86,0x31,0xeb,0x5a,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0x49,0x4a,0x65,0x29,0x86,0x31,0x65,0x29,0x69,0x4a,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0xcf,0x7b,0x69,0x4a,0x65,0x29,0x86,0x31,0x65,0x29,0x49,0x4a,0xcf,0x7b,0xeb,0x5a,0x86,0x31,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
|
||||
};
|
||||
|
||||
const lv_img_dsc_t img_mqtt_logo_image = {
|
||||
.header.magic = LV_IMAGE_HEADER_MAGIC,
|
||||
.header.cf = LV_COLOR_FORMAT_RGB565A8,
|
||||
.header.flags = 0,
|
||||
.header.w = 30,
|
||||
.header.h = 30,
|
||||
.header.stride = 60,
|
||||
.data_size = 2700,
|
||||
.data = img_mqtt_logo_image_map,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "lvgl.h";
|
||||
class Themes
|
||||
{
|
||||
public:
|
||||
enum Theme {
|
||||
eLight,
|
||||
eDark
|
||||
};
|
||||
|
||||
static void initStyles(void);
|
||||
static enum Theme get(void);
|
||||
static void set(enum Theme th);
|
||||
static void recolorButton(lv_obj_t* obj, bool enabled, lv_opa_t opa = 255);
|
||||
static void recolorText(lv_obj_t* obj, bool enabled);
|
||||
static void recolorTopLabel(lv_obj_t* obj, bool alert);
|
||||
|
||||
private:
|
||||
Themes(void) = default;
|
||||
};
|
||||
+74
-145
@@ -10,7 +10,9 @@
|
||||
#include "LoRaPresets.h"
|
||||
#include "Ringtones.h"
|
||||
#include "ViewController.h"
|
||||
#include "Themes.h"
|
||||
#include "images.h"
|
||||
#include "styles.h"
|
||||
#include "lv_i18n.h"
|
||||
#include "ui.h" // this is the ui generated by eez-studio
|
||||
#include <algorithm>
|
||||
@@ -185,7 +187,9 @@ void TFTView_320x240::ui_set_active(lv_obj_t *b, lv_obj_t *p, lv_obj_t *tp)
|
||||
{
|
||||
if (activeButton) {
|
||||
lv_obj_set_style_border_width(activeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_img_recolor_opa(activeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
if (Themes::get() == Themes::eDark)
|
||||
lv_obj_set_style_bg_img_recolor_opa(activeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_img_recolor(activeButton, lv_color_hex(0x757575), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
}
|
||||
lv_obj_set_style_border_width(b, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_img_recolor(b, lv_color_hex(0x67EA94), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
@@ -230,38 +234,7 @@ void TFTView_320x240::apply_hotfix(void)
|
||||
{
|
||||
lv_obj_move_foreground(objects.keyboard);
|
||||
|
||||
// lvgl v9 tabview buttons are not btn-matrix anymore but array of buttons
|
||||
// see https://forum.lvgl.io/t/style-a-tabview-widget-in-v9-0-0/14747
|
||||
static lv_style_t style_btn_default;
|
||||
lv_style_init(&style_btn_default);
|
||||
lv_style_set_text_color(&style_btn_default, lv_color_hex(0xA0A0A0));
|
||||
lv_style_set_bg_color(&style_btn_default, lv_color_hex(0x303030));
|
||||
lv_style_set_bg_opa(&style_btn_default, LV_OPA_COVER);
|
||||
lv_style_set_border_color(&style_btn_default, lv_color_hex(0x505050));
|
||||
lv_style_set_border_opa(&style_btn_default, LV_OPA_COVER);
|
||||
lv_style_set_border_width(&style_btn_default, 1);
|
||||
lv_style_set_border_side(&style_btn_default, LV_BORDER_SIDE_FULL);
|
||||
|
||||
static lv_style_t style_btn_active;
|
||||
lv_style_init(&style_btn_active);
|
||||
lv_style_set_text_color(&style_btn_active, lv_color_hex(0xFFFFFF));
|
||||
lv_style_set_bg_color(&style_btn_active, lv_color_hex(0x303030));
|
||||
lv_style_set_bg_opa(&style_btn_active, LV_OPA_COVER);
|
||||
lv_style_set_border_color(&style_btn_active, lv_color_hex(0xff67ea94));
|
||||
lv_style_set_border_opa(&style_btn_active, LV_OPA_COVER);
|
||||
lv_style_set_border_width(&style_btn_active, 3);
|
||||
lv_style_set_border_side(&style_btn_active, LV_BORDER_SIDE_BOTTOM);
|
||||
|
||||
static lv_style_t style_btn_pressed;
|
||||
lv_style_init(&style_btn_pressed);
|
||||
lv_style_set_text_color(&style_btn_pressed, lv_color_hex(0xFFFFFF));
|
||||
lv_style_set_bg_color(&style_btn_pressed, lv_color_hex(0xff67ea94));
|
||||
lv_style_set_bg_opa(&style_btn_pressed, LV_OPA_COVER);
|
||||
lv_style_set_border_color(&style_btn_pressed, lv_color_hex(0xff67ea94));
|
||||
lv_style_set_border_opa(&style_btn_pressed, LV_OPA_COVER);
|
||||
lv_style_set_border_width(&style_btn_pressed, 3);
|
||||
lv_style_set_border_side(&style_btn_pressed, LV_BORDER_SIDE_BOTTOM);
|
||||
|
||||
Themes::initStyles();
|
||||
auto applyStyle = [](lv_obj_t *tab_buttons) {
|
||||
for (int i = 0; i < tab_buttons->spec_attr->child_cnt; i++) {
|
||||
if (tab_buttons->spec_attr->children[i]->class_p == &lv_button_class) {
|
||||
@@ -278,6 +251,13 @@ void TFTView_320x240::apply_hotfix(void)
|
||||
applyStyle(tab_buttons);
|
||||
tab_buttons = lv_tabview_get_tab_bar(ui_SettingsTabView);
|
||||
applyStyle(tab_buttons);
|
||||
|
||||
Themes::recolorButton(objects.home_wlan_button, false);
|
||||
Themes::recolorButton(objects.home_memory_button, false);
|
||||
Themes::recolorButton(objects.home_mqtt_button, false, 100);
|
||||
Themes::recolorText(objects.home_wlan_label, false);
|
||||
Themes::recolorText(objects.home_mqtt_label, false);
|
||||
Themes::recolorText(objects.home_memory_label, false);
|
||||
}
|
||||
|
||||
void TFTView_320x240::ui_events_init(void)
|
||||
@@ -661,9 +641,7 @@ void TFTView_320x240::ui_event_WLANButton(lv_event_t *e)
|
||||
// toggle WLAN on/off
|
||||
uint32_t toggle = (unsigned long)objects.home_wlan_button->user_data;
|
||||
objects.home_wlan_button->user_data = (void *)(1 - toggle);
|
||||
|
||||
lv_obj_set_style_bg_image_recolor(objects.home_wlan_button, toggle ? lv_color_hex(0xff606060) : lv_color_hex(0xffffffff),
|
||||
LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_wlan_button, toggle);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -674,9 +652,8 @@ void TFTView_320x240::ui_event_MemoryButton(lv_event_t *e)
|
||||
// toggle memory display updates
|
||||
uint32_t toggle = (unsigned long)objects.home_memory_button->user_data;
|
||||
objects.home_memory_button->user_data = (void *)(1 - toggle);
|
||||
lv_obj_set_style_bg_image_recolor(objects.home_memory_button,
|
||||
toggle ? lv_color_hex(0xff606060) : lv_color_hex(0xffffffff),
|
||||
LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_memory_button, !toggle);
|
||||
Themes::recolorText(objects.home_memory_label, !toggle);
|
||||
if ((unsigned long)objects.home_memory_button->user_data) {
|
||||
THIS->updateFreeMem();
|
||||
}
|
||||
@@ -1257,10 +1234,7 @@ void TFTView_320x240::ui_event_signal_scanner_start(lv_event_t *e)
|
||||
lv_obj_set_pos(obj, 0, -50);
|
||||
lv_obj_set_size(obj, 68, 68);
|
||||
lv_obj_set_style_align(obj, LV_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(0xff404040), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 4, LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(0xff67ea94), LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
apply_style_spinner_style(obj);
|
||||
lv_label_set_text(objects.signal_scanner_start_label, "30s");
|
||||
THIS->scans = 6 + 1;
|
||||
}
|
||||
@@ -1312,17 +1286,14 @@ void TFTView_320x240::ui_event_trace_route_start(lv_event_t *e)
|
||||
if (!spinnerButton) {
|
||||
if (currentPanel) {
|
||||
time(&startTime);
|
||||
lv_label_set_text(objects.trace_route_start_label, "");
|
||||
lv_obj_t *obj = lv_spinner_create(objects.start_button_panel);
|
||||
spinnerButton = obj;
|
||||
lv_spinner_set_anim_params(obj, 2000, 300);
|
||||
lv_spinner_set_anim_params(obj, 5000, 300);
|
||||
lv_obj_set_pos(obj, 0, 0);
|
||||
lv_obj_set_size(obj, 68, 68);
|
||||
lv_obj_set_style_align(obj, LV_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(0xff404040), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 4, LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(0xff67ea94), LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
apply_style_spinner_style(obj);
|
||||
lv_label_set_text(objects.trace_route_start_label, "30s");
|
||||
|
||||
// retrieve nodeNum from current node
|
||||
// FIXME: remove for loop
|
||||
@@ -1856,8 +1827,8 @@ void TFTView_320x240::addMessage(uint32_t requestId, char *msg)
|
||||
lv_obj_set_align(hiddenPanel, LV_ALIGN_CENTER);
|
||||
lv_obj_clear_flag(hiddenPanel, LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_set_style_radius(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(hiddenPanel, lv_color_hex(0x303030), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
// lv_obj_set_style_bg_opa(hiddenPanel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
apply_style_panel_style(hiddenPanel);
|
||||
|
||||
lv_obj_set_style_border_width(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
@@ -1878,20 +1849,7 @@ void TFTView_320x240::addMessage(uint32_t requestId, char *msg)
|
||||
if (msg[i] == CR_REPLACEMENT)
|
||||
msg[i] = '\n';
|
||||
lv_label_set_text(textLabel, msg);
|
||||
lv_obj_set_style_text_color(textLabel, lv_color_hex(0xF0F0F0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
// lv_obj_set_style_text_opa(textLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(textLabel, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(textLabel, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(textLabel, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(textLabel, lv_color_hex(0x404040), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
// lv_obj_set_style_bg_opa(textLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(textLabel, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(textLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(textLabel, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(textLabel, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(textLabel, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(textLabel, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(textLabel, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
apply_style_chat_message_style(textLabel);
|
||||
|
||||
lv_obj_scroll_to_view(hiddenPanel, LV_ANIM_ON);
|
||||
}
|
||||
@@ -1927,36 +1885,28 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_obj_set_align(p, LV_ALIGN_CENTER);
|
||||
lv_obj_clear_flag(p, LV_OBJ_FLAG_CLICKABLE | LV_OBJ_FLAG_PRESS_LOCK | LV_OBJ_FLAG_CLICK_FOCUSABLE |
|
||||
LV_OBJ_FLAG_GESTURE_BUBBLE | LV_OBJ_FLAG_SNAPPABLE | LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_set_style_border_width(p, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(p, lv_color_hex(0xff808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(p, lv_color_hex(0xff404040), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
apply_style_node_panel_style(p);
|
||||
|
||||
// NodeImage
|
||||
lv_obj_t *img = lv_img_create(p);
|
||||
setNodeImage(nodeNum, role, viaMqtt, img);
|
||||
lv_obj_set_pos(img, -5, -10);
|
||||
lv_obj_set_size(img, 32, 32);
|
||||
// lv_obj_add_flag(img, LV_OBJ_FLAG_ADV_HITTEST);
|
||||
lv_obj_clear_flag(img, LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_set_style_radius(img, 6, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(img, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(img, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(img, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_img_recolor(img, lv_color_hex(0x202020), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
img->user_data = (void *)role;
|
||||
// NodeButton
|
||||
lv_obj_t *nodeButton = lv_btn_create(p);
|
||||
lv_obj_set_pos(nodeButton, 0, 0);
|
||||
lv_obj_set_size(nodeButton, LV_PCT(106), LV_PCT(100));
|
||||
apply_style_node_button_style(nodeButton);
|
||||
lv_obj_set_align(nodeButton, LV_ALIGN_CENTER);
|
||||
lv_obj_add_flag(nodeButton, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
|
||||
lv_obj_set_style_bg_color(nodeButton, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(nodeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(nodeButton, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(nodeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(nodeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(nodeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_spread(nodeButton, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_max_height(nodeButton, 110, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_max_height(nodeButton, 132, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_min_height(nodeButton, 50, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
nodeButton->user_data = _lv_ll_get_tail(lv_group_ll);
|
||||
|
||||
@@ -1968,8 +1918,6 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_label_set_text(ln_lbl, userLong);
|
||||
ln_lbl->user_data = (void *)strlen(userLong);
|
||||
lv_obj_set_style_align(ln_lbl, LV_ALIGN_TOP_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ln_lbl, lv_color_hex(0xF0F0F0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ln_lbl, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
// UserNameShortLabel
|
||||
lv_obj_t *sn_lbl = lv_label_create(p);
|
||||
lv_obj_set_pos(sn_lbl, 30, -3);
|
||||
@@ -1977,7 +1925,7 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_label_set_long_mode(sn_lbl, LV_LABEL_LONG_WRAP);
|
||||
lv_label_set_text(sn_lbl, userShort);
|
||||
lv_obj_set_style_align(sn_lbl, LV_ALIGN_TOP_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(sn_lbl, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(sn_lbl, &ui_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
char *userData = (char *)&(sn_lbl->user_data);
|
||||
userData[0] = userShort[0];
|
||||
if (userData[0] == 0x00)
|
||||
@@ -1998,10 +1946,7 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_obj_set_size(ui_BatteryLabel, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
|
||||
lv_obj_set_align(ui_BatteryLabel, LV_ALIGN_TOP_RIGHT);
|
||||
lv_label_set_text(ui_BatteryLabel, "");
|
||||
lv_obj_set_style_text_color(ui_BatteryLabel, lv_color_hex(0xF0F0F0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui_BatteryLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui_BatteryLabel, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui_BatteryLabel, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
// LastHeardLabel
|
||||
lv_obj_t *ui_lastHeardLabel = lv_label_create(p);
|
||||
lv_obj_set_pos(ui_lastHeardLabel, 8, 20);
|
||||
@@ -2025,10 +1970,7 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_label_set_text(ui_lastHeardLabel, "");
|
||||
}
|
||||
|
||||
lv_obj_set_style_text_color(ui_lastHeardLabel, lv_color_hex(0xF0F0F0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui_lastHeardLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui_lastHeardLabel, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui_lastHeardLabel, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
ui_lastHeardLabel->user_data = (void *)lastHeard;
|
||||
// SignalLabel
|
||||
lv_obj_t *ui_SignalLabel = lv_label_create(p);
|
||||
@@ -2037,9 +1979,6 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_obj_set_pos(ui_SignalLabel, 8, -12);
|
||||
lv_obj_set_align(ui_SignalLabel, LV_ALIGN_TOP_RIGHT);
|
||||
lv_label_set_text(ui_SignalLabel, "");
|
||||
lv_obj_set_style_text_color(ui_SignalLabel, lv_color_hex(0xFFFFFF), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui_SignalLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui_SignalLabel, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
ui_SignalLabel->user_data = (void *)viaMqtt; // used for filtering (applyNodesFilter)
|
||||
// PositionLabel
|
||||
lv_obj_t *ui_PositionLabel = lv_label_create(p);
|
||||
@@ -2049,7 +1988,6 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_label_set_text(ui_PositionLabel, "");
|
||||
lv_obj_set_style_align(ui_PositionLabel, LV_ALIGN_TOP_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui_PositionLabel, lv_color_hex(0xff05f6cb), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui_PositionLabel, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
ui_PositionLabel->user_data = 0; // store latitude
|
||||
// Position2Label
|
||||
lv_obj_t *ui_Position2Label = lv_label_create(p);
|
||||
@@ -2058,8 +1996,6 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_label_set_long_mode(ui_Position2Label, LV_LABEL_LONG_SCROLL);
|
||||
lv_label_set_text(ui_Position2Label, "");
|
||||
lv_obj_set_style_align(ui_Position2Label, LV_ALIGN_TOP_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui_Position2Label, lv_color_hex(0xfff0f0f0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui_Position2Label, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
ui_Position2Label->user_data = 0; // store longitude
|
||||
// Telemetry1Label
|
||||
lv_obj_t *ui_Telemetry1Label = lv_label_create(p);
|
||||
@@ -2068,8 +2004,6 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_label_set_long_mode(ui_Telemetry1Label, LV_LABEL_LONG_CLIP);
|
||||
lv_label_set_text(ui_Telemetry1Label, "");
|
||||
lv_obj_set_style_align(ui_Telemetry1Label, LV_ALIGN_TOP_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui_Telemetry1Label, lv_color_hex(0xfff0f0f0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui_Telemetry1Label, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui_Telemetry1Label, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
// Telemetry2Label
|
||||
lv_obj_t *ui_Telemetry2Label = lv_label_create(p);
|
||||
@@ -2078,8 +2012,6 @@ void TFTView_320x240::addNode(uint32_t nodeNum, uint8_t ch, const char *userShor
|
||||
lv_label_set_long_mode(ui_Telemetry2Label, LV_LABEL_LONG_CLIP);
|
||||
lv_label_set_text(ui_Telemetry2Label, "");
|
||||
lv_obj_set_style_align(ui_Telemetry2Label, LV_ALIGN_TOP_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui_Telemetry2Label, lv_color_hex(0xfff0f0f0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui_Telemetry2Label, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui_Telemetry2Label, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
|
||||
lv_obj_add_event_cb(nodeButton, ui_event_NodeButton, LV_EVENT_ALL, (void *)nodeNum);
|
||||
@@ -2279,8 +2211,7 @@ void TFTView_320x240::updateMetrics(uint32_t nodeNum, uint32_t bat_level, float
|
||||
if (bat_level != 0 || voltage != 0) {
|
||||
uint32_t shown_level = std::min(bat_level, (uint32_t)100);
|
||||
sprintf(buf, "%d%%", shown_level);
|
||||
lv_opa_t recolor = 0;
|
||||
uint32_t txtColor = 0xE0E0E0;
|
||||
bool alert = false;
|
||||
|
||||
BatteryLevel level;
|
||||
BatteryLevel::Status status = level.calcStatus(bat_level, voltage);
|
||||
@@ -2288,6 +2219,8 @@ void TFTView_320x240::updateMetrics(uint32_t nodeNum, uint32_t bat_level, float
|
||||
case BatteryLevel::Plugged:
|
||||
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_plug_image,
|
||||
LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
if (shown_level == 100)
|
||||
buf[0] = '\0';
|
||||
break;
|
||||
case BatteryLevel::Charging:
|
||||
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_bolt_image,
|
||||
@@ -2311,14 +2244,15 @@ void TFTView_320x240::updateMetrics(uint32_t nodeNum, uint32_t bat_level, float
|
||||
lv_obj_set_style_bg_image_src(objects.battery_image, &img_battery_empty_warn_image,
|
||||
LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
buf[0] = '\0';
|
||||
recolor = 255;
|
||||
txtColor = 0xF72b2b;
|
||||
alert = true;
|
||||
break;
|
||||
default:
|
||||
ILOG_ERROR("unhandled battery level %d\n", status);
|
||||
break;
|
||||
}
|
||||
lv_obj_set_style_bg_image_recolor_opa(objects.battery_image, recolor, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(objects.battery_percentage_label, lv_color_hex(txtColor),
|
||||
LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
if (status != BatteryLevel::Plugged && status != BatteryLevel::Warn)
|
||||
lv_label_set_text(objects.battery_percentage_label, buf);
|
||||
Themes::recolorTopLabel(objects.battery_percentage_label, alert);
|
||||
lv_obj_set_style_bg_image_recolor_opa(objects.battery_image, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_label_set_text(objects.battery_percentage_label, buf);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2411,34 +2345,39 @@ void TFTView_320x240::updateConnectionStatus(const meshtastic_DeviceConnectionSt
|
||||
uint32_t ip = status.wifi.status.ip_address;
|
||||
sprintf(buf, "%d.%d.%d.%d", ip & 0xff, (ip & 0xff00) >> 8, (ip & 0xff0000) >> 16, (ip & 0xff000000) >> 24);
|
||||
lv_label_set_text(objects.home_wlan_label, buf);
|
||||
lv_obj_set_style_bg_img_recolor_opa(objects.home_wlan_button, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_wlan_button, true);
|
||||
Themes::recolorText(objects.home_wlan_label, true);
|
||||
if (status.wifi.status.is_connected) {
|
||||
lv_obj_set_style_text_color(objects.home_wlan_label, lv_color_hex(0xAAFBFF), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_img_src(objects.home_wlan_button, &img_home_wlan_button_image,
|
||||
LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
} else {
|
||||
lv_obj_set_style_text_color(objects.home_wlan_label, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_img_src(objects.home_wlan_button, &img_home_wlan_off_image,
|
||||
LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
}
|
||||
|
||||
if (status.wifi.status.is_mqtt_connected) {
|
||||
lv_obj_set_style_bg_image_opa(objects.home_mqtt_button, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(objects.home_mqtt_label, lv_color_hex(0xAAFBFF), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_mqtt_button, true, 255);
|
||||
Themes::recolorText(objects.home_mqtt_label, true);
|
||||
} else {
|
||||
if (db.module_config.mqtt.enabled) {
|
||||
lv_obj_set_style_bg_image_opa(objects.home_mqtt_button, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_mqtt_button, true, 255);
|
||||
} else {
|
||||
lv_obj_set_style_bg_image_opa(objects.home_mqtt_button, 100, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_mqtt_button, false, 100);
|
||||
}
|
||||
lv_obj_set_style_text_color(objects.home_mqtt_label, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorText(objects.home_mqtt_label, false);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
lv_obj_set_style_bg_img_recolor_opa(objects.home_wlan_button, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_wlan_button, false);
|
||||
Themes::recolorText(objects.home_wlan_label, false);
|
||||
if (status.wifi.status.is_mqtt_connected) {
|
||||
Themes::recolorButton(objects.home_mqtt_button, true, 255);
|
||||
Themes::recolorText(objects.home_mqtt_label, true);
|
||||
}
|
||||
else {
|
||||
Themes::recolorText(objects.home_mqtt_label, false);
|
||||
}
|
||||
lv_obj_set_style_bg_img_src(objects.home_wlan_button, &img_home_wlan_off_image, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(objects.home_wlan_label, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(objects.home_mqtt_label, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
}
|
||||
} else {
|
||||
lv_obj_add_flag(objects.home_wlan_label, LV_OBJ_FLAG_HIDDEN);
|
||||
@@ -2641,11 +2580,11 @@ void TFTView_320x240::addNodeToTraceRoute(uint32_t nodeNum)
|
||||
nodePanel = it->second;
|
||||
}
|
||||
lv_obj_t *btn = lv_btn_create(objects.trace_route_panel);
|
||||
objects.trace_route_to_button = btn;
|
||||
//objects.trace_route_to_button = btn;
|
||||
lv_obj_set_pos(btn, 0, 0);
|
||||
lv_obj_set_size(btn, LV_PCT(100), 36);
|
||||
lv_obj_set_size(btn, LV_PCT(100), 38);
|
||||
apply_style_settings_button_style(btn);
|
||||
lv_obj_set_style_align(btn, LV_ALIGN_TOP_MID, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(btn, lv_color_hex(0xff303030), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(btn, 6, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(btn, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_ofs_y(btn, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
@@ -3038,8 +2977,8 @@ void TFTView_320x240::updateMQTTModule(const meshtastic_ModuleConfig_MQTTConfig
|
||||
lv_label_set_text(objects.home_mqtt_label, buf);
|
||||
|
||||
if (!db.module_config.mqtt.enabled) {
|
||||
lv_obj_set_style_bg_image_opa(objects.home_mqtt_button, 100, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(objects.home_mqtt_label, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
Themes::recolorButton(objects.home_mqtt_button, false, 100);
|
||||
Themes::recolorText(objects.home_mqtt_label, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3208,9 +3147,7 @@ void TFTView_320x240::newMessage(uint32_t nodeNum, lv_obj_t *container, uint8_t
|
||||
lv_obj_set_align(hiddenPanel, LV_ALIGN_CENTER);
|
||||
lv_obj_clear_flag(hiddenPanel, LV_OBJ_FLAG_SCROLLABLE); /// Flags
|
||||
lv_obj_set_style_radius(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(hiddenPanel, lv_color_hex(0x303030), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(hiddenPanel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
apply_style_panel_style(hiddenPanel);
|
||||
lv_obj_set_style_pad_left(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(hiddenPanel, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
@@ -3223,19 +3160,7 @@ void TFTView_320x240::newMessage(uint32_t nodeNum, lv_obj_t *container, uint8_t
|
||||
lv_obj_set_height(msgLabel, LV_SIZE_CONTENT); /// 1
|
||||
lv_obj_set_align(msgLabel, LV_ALIGN_LEFT_MID);
|
||||
lv_label_set_text(msgLabel, msg);
|
||||
lv_obj_set_style_text_color(msgLabel, lv_color_hex(0xD0D0D0), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(msgLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(msgLabel, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(msgLabel, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(msgLabel, lv_color_hex(0x404040), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(msgLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(msgLabel, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(msgLabel, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(msgLabel, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(msgLabel, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(msgLabel, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(msgLabel, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(msgLabel, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
apply_style_new_message_style(msgLabel);
|
||||
|
||||
lv_obj_scroll_to_view(hiddenPanel, LV_ANIM_ON);
|
||||
}
|
||||
@@ -3263,8 +3188,8 @@ void TFTView_320x240::addChat(uint32_t from, uint32_t to, uint8_t ch)
|
||||
lv_obj_set_size(chatBtn, LV_PCT(100), 36);
|
||||
lv_obj_add_flag(chatBtn, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
|
||||
lv_obj_clear_flag(chatBtn, LV_OBJ_FLAG_SCROLLABLE);
|
||||
apply_style_home_button_style(chatBtn);
|
||||
lv_obj_set_style_align(chatBtn, LV_ALIGN_TOP_MID, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(chatBtn, lv_color_hex(0xff404040), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(chatBtn, lv_color_hex(0x808080), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(chatBtn, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_ofs_x(chatBtn, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
@@ -3297,7 +3222,6 @@ void TFTView_320x240::addChat(uint32_t from, uint32_t to, uint8_t ch)
|
||||
lv_label_set_text(obj, buf);
|
||||
lv_obj_set_style_align(obj, LV_ALIGN_LEFT_MID, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(obj, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_14, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
}
|
||||
{
|
||||
// ChatDelButton
|
||||
@@ -3305,13 +3229,10 @@ void TFTView_320x240::addChat(uint32_t from, uint32_t to, uint8_t ch)
|
||||
chatDelBtn = obj;
|
||||
lv_obj_set_pos(obj, -3, -1);
|
||||
lv_obj_set_size(obj, 40, 23);
|
||||
lv_obj_add_flag(obj, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
|
||||
lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_set_style_align(obj, LV_ALIGN_RIGHT_MID, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(0xffa70a0a), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_add_flag(chatDelBtn, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_clear_flag(chatDelBtn, LV_OBJ_FLAG_SCROLLABLE);
|
||||
lv_obj_set_style_bg_opa(chatDelBtn, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_add_flag(obj, LV_OBJ_FLAG_HIDDEN);
|
||||
{
|
||||
lv_obj_t *parent_obj = obj;
|
||||
{
|
||||
@@ -3796,8 +3717,16 @@ void TFTView_320x240::task_handler(void)
|
||||
scanSignal(scans);
|
||||
scans--;
|
||||
}
|
||||
if (startTime && (curtime - startTime) > 30) {
|
||||
removeSpinner();
|
||||
if (startTime) {
|
||||
if (curtime - startTime > 30) {
|
||||
lv_label_set_text(objects.trace_route_start_label, "Start");
|
||||
removeSpinner();
|
||||
}
|
||||
else {
|
||||
char buf[16];
|
||||
sprintf(buf, "%ds", ((35 - (curtime - startTime)) / 5) * 5);
|
||||
lv_label_set_text(objects.trace_route_start_label, buf);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (curtime - lastrun10 >= 10) { // call every 10s
|
||||
|
||||
@@ -0,0 +1,412 @@
|
||||
#include "Themes.h"
|
||||
#include "stdint.h"
|
||||
|
||||
static enum Themes::Theme theme = Themes::eDark;
|
||||
|
||||
Themes::Theme Themes::get(void)
|
||||
{
|
||||
return theme;
|
||||
}
|
||||
|
||||
void Themes::set(enum Theme th)
|
||||
{
|
||||
theme = th;
|
||||
}
|
||||
|
||||
|
||||
enum ThemeColor {
|
||||
eMainScreenStyle,
|
||||
eTopPanelBg,
|
||||
eTopPanelText,
|
||||
eTopImageBg,
|
||||
eTopImageRecolor,
|
||||
eTopImageRecolorOpa,
|
||||
ePanelBg,
|
||||
ePanelText,
|
||||
ePanelBorder,
|
||||
eNodePanelBg,
|
||||
eNodePanelBorder,
|
||||
eNodePanelText,
|
||||
eNodeButtonBg,
|
||||
eNodeButtonBgOpa,
|
||||
eButtonPanelBg,
|
||||
eMainButtonBg,
|
||||
eMainButtonText,
|
||||
eMainButtonBorder,
|
||||
eMainButtonShadow,
|
||||
eMainButtonImageRecolor,
|
||||
eMainButtonImageRecolorOpa,
|
||||
eHomeContainerBg,
|
||||
eHomeContainerBorder,
|
||||
eHomeContainerShadow,
|
||||
eHomeContainerText,
|
||||
eHomeButtonBg,
|
||||
eHomeButtonText,
|
||||
eHomeButtonBorder,
|
||||
eHomeButtonImageRecolor,
|
||||
eHomeButtonImageRecolorOpa,
|
||||
eChannelButtonBg,
|
||||
eChannelButtonBorder,
|
||||
eChannelButtonText,
|
||||
eSettingsPanelBg,
|
||||
eSettingsPanelText,
|
||||
eSettingsPanelBorder,
|
||||
eSettingsPanelShadow,
|
||||
eSettingsPanelBgOpa,
|
||||
eSettingsButtonBg,
|
||||
eSettingsButtonText,
|
||||
eSettingsButtonBorder,
|
||||
eSettingsButtonImageRecolor,
|
||||
eSettingsButtonImageRecolorOpa,
|
||||
eSettingsLabelBg,
|
||||
eSettingsLabelBorder,
|
||||
eTabViewBg,
|
||||
eTabViewText,
|
||||
eTabButtonDefaultBg,
|
||||
eTabButtonActiveBg,
|
||||
eTabButtonPressedBg,
|
||||
eTabButtonDefaultText,
|
||||
eTabButtonActiveText,
|
||||
eTabButtonPressedText,
|
||||
eTabButtonDefaultBorder,
|
||||
eChatMessageBg,
|
||||
eChatMessageBgOpa,
|
||||
eChatMessageText,
|
||||
eChatMessageBorder,
|
||||
eNewMessageBg,
|
||||
eNewMessageBgOpa,
|
||||
eNewMessageText,
|
||||
eNewMessageBorder,
|
||||
eAlertPanelBg,
|
||||
eBtnMatrixBorderMain,
|
||||
eBtnMatrixBorderItems,
|
||||
eBtnMatrixBgItems,
|
||||
eBtnMatrixTextItems,
|
||||
eColorTextLabel,
|
||||
eSpinnerMainArc,
|
||||
eSpinnerIndicatorArc
|
||||
};
|
||||
|
||||
uint32_t themeColor[][2] = {
|
||||
// light, dark
|
||||
{ 0xfff4f4f4, 0xff303030 }, // eMainScreenStyle
|
||||
{ 0xff67ea94, 0xff436C70 }, // eTopPanelBg
|
||||
{ 0xff212121, 0xffE0E0E0 }, // eTopPanelText
|
||||
{ 0xff67ea94, 0xff436C70 }, // eTopImageBg
|
||||
{ 0xff212121, 0xffffffff }, // eTopImageRecolor
|
||||
{ 255, 255 }, // eTopImageRecolorOpa
|
||||
{ 0xfff8f8f8, 0xff303030 }, // ePanelBg
|
||||
{ 0xff212121, 0xfff0f0f0 }, // ePanelText
|
||||
{ 0xff67ea94, 0xff67ea94 }, // ePanelBorder
|
||||
{ 0xfffafaf4, 0xff404040 }, // eNodePanelBg
|
||||
{ 0xff979797, 0xff808080 }, // eNodePanelBorder
|
||||
{ 0xff212121, 0xfff0f0f0 }, // eNodePanelText
|
||||
{ 0xfffffff8, 0xff404040 }, // eNodeButtonBg
|
||||
{ 0, 0 }, // eNodeButtonBgOpa
|
||||
{ 0xffffffff, 0xff585858 }, // eButtonPanelBg
|
||||
{ 0xffeaeae0, 0xff585858 }, // eMainButtonBg
|
||||
{ 0xff101010, 0xffaafbff }, // eMainButtonText
|
||||
{ 0xff67ea94, 0xff67ea94 }, // eMainButtonBorder
|
||||
{ 0xffc0c0c0, 0xff9e9e9e }, // eMainButtonShadow
|
||||
{ 0xff757575, 0xff67ea94 }, // eMainButtonImageRecolor
|
||||
{ 255, 0 }, // eMainButtonImageRecolorOpa
|
||||
{ 0xfffafaf4, 0xff303030 }, // eHomeContainerBg
|
||||
{ 0xffaaaaaa, 0xff67EA94 }, // eHomeContainerBorder
|
||||
{ 0xff999999, 0xff2B824A }, // eHomeContainerShadow
|
||||
{ 0xff294337, 0xffaafbff }, // eHomeContainerText
|
||||
{ 0xfff4f4ee, 0xff303030 }, // eHomeButtonBg
|
||||
{ 0xff101010, 0xffffffff }, // eHomeButtonText
|
||||
{ 0xffd0d0d0, 0xff303030 }, // eHomeButtonBorder
|
||||
{ 0xff67ea94, 0xff606060 }, // eHomeButtonImageRecolor
|
||||
{ 255, 0 }, // eHomeButtonImageRecolorOpa
|
||||
{ 0xfffafaf4, 0xff404040 }, // eChannelButtonBg
|
||||
{ 0xffD0D0D0, 0xffA0A0A0 }, // eChannelButtonBorder
|
||||
{ 0xff101010, 0xffffffff }, // eChannelButtonText
|
||||
{ 0xfff0f0f0, 0xff303030 }, // eSettingsPanelBg
|
||||
{ 0xff003c9f, 0xffaafbff }, // eSettingsPanelText
|
||||
{ 0xff979797, 0 }, // eSettingsPanelBorder
|
||||
{ 0xff7e7e7e, 0 }, // eSettingsPanelShadow
|
||||
{ 250, 250 }, // eSettingsPanelBgOpa
|
||||
{ 0xffeaeae0, 0xff505050 }, // eSettingsButtonBg
|
||||
{ 0xff294337, 0xffaafbff }, // eSettingsButtonText
|
||||
{ 0xffd0d0d0, 0xff303030 }, // eSettingsButtonBorder
|
||||
{ 0xff67ea94, 0 }, // eSettingsButtonImageRecolor
|
||||
{ 255, 0 }, // eSettingsButtonImageRecolorOpa
|
||||
{ 0xffffffff, 0xff404040 }, // eSettingsLabelBg
|
||||
{ 0xff808080, 0xff404040 }, // eSettingsLabelBorder
|
||||
{ 0xfff4f4f4, 0xff303030 }, // eTabViewBg
|
||||
{ 0xff003c9f, 0xffaafbff }, // eTabViewText
|
||||
{ 0xffe0e0e0, 0xff303030 }, // eTabButtonDefaultBg
|
||||
{ 0xffffffff, 0xff303030 }, // eTabButtonActiveBg
|
||||
{ 0xffaafbff, 0xff67ea94 }, // eTabButtonPressedBg
|
||||
{ 0xff606060, 0xffA0A0A0 }, // eTabButtonDefaultText
|
||||
{ 0xff101010, 0xffffffff }, // eTabButtonActiveText
|
||||
{ 0xffffffff, 0xffffffff }, // eTabButtonPressedText
|
||||
{ 0xffb0b0b0, 0xff505050 }, // eTabButtonDefaultBorder
|
||||
{ 0xfffbfce9, 0xff303030 }, // eChatMessageBg
|
||||
{ 255, 255, }, // eChatMessageBgOpa
|
||||
{ 0xff294337, 0xffffffff }, // eChatMessageText
|
||||
{ 0xff888888, 0xff707070 }, // eChatMessageBorder
|
||||
{ 0xffffffff, 0xff404040 }, // eNewMessageBg
|
||||
{ 255, 255 }, // eNewMessageBgOpa
|
||||
{ 0xff294337, 0xffd0d0d0 }, // eNewMessageText
|
||||
{ 0xff888888, 0xff808080 }, // eNewMessageBorder
|
||||
{ 0xfffbfbfb, 0xff303030 }, // eAlertPanelBg
|
||||
{ 0xfff4f4f4, 0xff303030 }, // eBtnMatrixBorderMain
|
||||
{ 0xff67ea94, 0xff67ea94 }, // eBtnMatrixBorderItems
|
||||
{ 0xfffffff8, 0xff606060 }, // eBtnMatrixBgItems
|
||||
{ 0xff212121, 0xffaafbff }, // eBtnMatrixTextItems
|
||||
{ 0xff003c9f, 0xffaafbff }, // eColorTextLabel
|
||||
{ 0xffe0e0e0, 0xff404040 }, // eSpinnerMainArc
|
||||
{ 0xff67ea94, 0xff67ea94 }, // eSpinnerIndicatorArc
|
||||
};
|
||||
|
||||
|
||||
#include "styles.h"
|
||||
#include "images.h"
|
||||
#include "fonts.h"
|
||||
|
||||
#define THEME(COLOR) (themeColor[COLOR][theme])
|
||||
|
||||
// TODO: the following styles are copied from eez-studio generated styles and parametrized
|
||||
// because eez-studio currently does not support lv_style
|
||||
extern "C" {
|
||||
void apply_style_top_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eTopPanelBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eTopPanelText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_16, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(ePanelBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(ePanelText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(ePanelBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_home_container_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eHomeContainerBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(obj, LV_BORDER_SIDE_FULL, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eHomeContainerBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_color(obj, lv_color_hex(THEME(eHomeContainerShadow)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_16, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eHomeContainerText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_settings_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eSettingsPanelBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eSettingsPanelText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_color(obj, lv_color_hex(THEME(eSettingsPanelShadow)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eSettingsPanelBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, THEME(eSettingsPanelBgOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_node_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eNodePanelBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eNodePanelBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 10, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eNodePanelText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_node_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eNodeButtonBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, THEME(eNodeButtonBgOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_button_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eButtonPanelBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_home_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eHomeButtonBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, THEME(eHomeButtonImageRecolorOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(THEME(eHomeButtonImageRecolor)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eHomeButtonBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eHomeButtonText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_settings_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eSettingsButtonBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, THEME(eSettingsButtonImageRecolorOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(THEME(eSettingsButtonImageRecolor)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eSettingsButtonBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eSettingsButtonText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_main_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, THEME(eMainButtonImageRecolorOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(THEME(eMainButtonImageRecolor)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eMainButtonBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(obj, LV_BORDER_SIDE_RIGHT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 3, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eMainButtonBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eMainButtonText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_color(obj, lv_color_hex(THEME(eMainButtonShadow)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_new_message_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eNewMessageBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eNewMessageBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eNewMessageText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(obj, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, THEME(eNewMessageBgOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_chat_message_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eChatMessageBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(obj, 8, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(obj, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eChatMessageBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eChatMessageText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, THEME(eChatMessageBgOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(obj, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_tab_view_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eTabViewBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eTabViewText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_drop_down_style(lv_obj_t *obj) {
|
||||
};
|
||||
void apply_style_bw_label_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(0xff212121), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(obj, &ui_font_montserrat_12, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_color_label_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eColorTextLabel)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_top_image_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_image_recolor(obj, lv_color_hex(THEME(eTopImageRecolor)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, THEME(eTopImageRecolorOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_image_recolor(obj, lv_color_hex(THEME(eTopImageRecolor)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_image_recolor_opa(obj, THEME(eTopImageRecolorOpa), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eTopImageBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_alert_panel_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eAlertPanelBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(ePanelText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_main_screen_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eMainScreenStyle)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_channel_button_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eChannelButtonBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eChannelButtonBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eChannelButtonText)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_button_matrix_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eBtnMatrixBorderItems)), LV_PART_ITEMS | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eBtnMatrixBgItems)), LV_PART_ITEMS | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(obj, lv_color_hex(THEME(eBtnMatrixTextItems)), LV_PART_ITEMS | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eBtnMatrixBorderMain)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_spinner_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(THEME(eSpinnerMainArc)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_color(obj, lv_color_hex(THEME(eSpinnerIndicatorArc)), LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_arc_width(obj, 4, LV_PART_INDICATOR | LV_STATE_DEFAULT);
|
||||
};
|
||||
void apply_style_settings_label_style(lv_obj_t *obj) {
|
||||
lv_obj_set_style_border_color(obj, lv_color_hex(THEME(eSettingsLabelBorder)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(obj, 1, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(obj, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex(THEME(eSettingsLabelBg)), LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
void Themes::initStyles(void)
|
||||
{
|
||||
// lvgl v9 tabview buttons are not btn-matrix anymore but array of buttons
|
||||
// see https://forum.lvgl.io/t/style-a-tabview-widget-in-v9-0-0/14747
|
||||
lv_style_init(&style_btn_default);
|
||||
lv_style_set_text_color(&style_btn_default, lv_color_hex(THEME(eTabButtonDefaultText)));
|
||||
lv_style_set_bg_color(&style_btn_default, lv_color_hex(THEME(eTabButtonDefaultBg)));
|
||||
lv_style_set_bg_opa(&style_btn_default, LV_OPA_COVER);
|
||||
lv_style_set_border_color(&style_btn_default, lv_color_hex(THEME(eTabButtonDefaultBorder)));
|
||||
lv_style_set_border_opa(&style_btn_default, LV_OPA_COVER);
|
||||
lv_style_set_border_width(&style_btn_default, 1);
|
||||
lv_style_set_border_side(&style_btn_default, LV_BORDER_SIDE_FULL);
|
||||
|
||||
lv_style_init(&style_btn_active);
|
||||
lv_style_set_text_color(&style_btn_active, lv_color_hex(THEME(eTabButtonActiveText)));
|
||||
lv_style_set_bg_color(&style_btn_active, lv_color_hex(THEME(eTabButtonActiveBg)));
|
||||
lv_style_set_bg_opa(&style_btn_active, LV_OPA_COVER);
|
||||
lv_style_set_border_color(&style_btn_active, lv_color_hex(0xff67ea94));
|
||||
lv_style_set_border_opa(&style_btn_active, LV_OPA_COVER);
|
||||
lv_style_set_border_width(&style_btn_active, 3);
|
||||
lv_style_set_border_side(&style_btn_active, LV_BORDER_SIDE_BOTTOM);
|
||||
|
||||
lv_style_init(&style_btn_pressed);
|
||||
lv_style_set_text_color(&style_btn_pressed, lv_color_hex(THEME(eTabButtonPressedText)));
|
||||
lv_style_set_bg_color(&style_btn_pressed, lv_color_hex(THEME(eTabButtonPressedBg)));
|
||||
lv_style_set_bg_opa(&style_btn_pressed, LV_OPA_COVER);
|
||||
lv_style_set_border_color(&style_btn_pressed, lv_color_hex(0xff67ea94));
|
||||
lv_style_set_border_opa(&style_btn_pressed, LV_OPA_COVER);
|
||||
lv_style_set_border_width(&style_btn_pressed, 3);
|
||||
lv_style_set_border_side(&style_btn_pressed, LV_BORDER_SIDE_BOTTOM);
|
||||
}
|
||||
|
||||
void Themes::recolorButton(lv_obj_t* obj, bool enabled, lv_opa_t opa)
|
||||
{
|
||||
lv_color_t color;
|
||||
switch(theme) {
|
||||
case eLight:
|
||||
color = enabled ? lv_color_hex(0xff67ea94) : lv_color_hex(0xffc0c0c0);
|
||||
break;
|
||||
case eDark:
|
||||
color = enabled ? lv_color_hex(0xffe0e0e0) : lv_color_hex(0xff606060);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
lv_obj_set_style_bg_image_recolor(obj, color, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_image_recolor_opa(obj, opa, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
}
|
||||
|
||||
void Themes::recolorText(lv_obj_t* obj, bool enabled)
|
||||
{
|
||||
lv_color_t color;
|
||||
switch(theme) {
|
||||
case eLight:
|
||||
color = enabled ? lv_color_hex(THEME(eHomeContainerText)) : lv_color_hex(0xffc0c0c0);
|
||||
break;
|
||||
case eDark:
|
||||
color = enabled ? lv_color_hex(THEME(eHomeContainerText)) : lv_color_hex(0xff606060);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
lv_obj_set_style_text_color(obj, color, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
}
|
||||
|
||||
void Themes::recolorTopLabel(lv_obj_t* obj, bool alert)
|
||||
{
|
||||
lv_color_t color;
|
||||
switch(theme) {
|
||||
case eLight:
|
||||
color = alert ? lv_color_hex(0xfff72b2b) : lv_color_hex(THEME(eTopPanelText));
|
||||
break;
|
||||
case eDark:
|
||||
color = alert ? lv_color_hex(0xfff72b2b) : lv_color_hex(THEME(eTopPanelText));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
lv_obj_set_style_text_color(obj, color, LV_PART_MAIN | LV_STATE_DEFAULT);
|
||||
}
|
||||
Reference in New Issue
Block a user