unl0kr: add a CLI option to show a custom message

Fixes: #33
This commit is contained in:
Vladimir Stoiakin 2025-03-12 11:11:22 +03:00
parent 18b576f259
commit 84d47d2824
9 changed files with 132 additions and 55 deletions

View file

@ -40,7 +40,7 @@ static struct {
lv_style_t msgbox_background;
lv_style_t bar;
lv_style_t bar_indicator;
} styles;
} styles;
static bool are_styles_initialised = false;
@ -90,6 +90,8 @@ static void init_styles(const bbx_theme *theme) {
reset_style(&(styles.window));
lv_style_set_bg_opa(&(styles.window), LV_OPA_COVER);
lv_style_set_bg_color(&(styles.window), lv_color_hex(theme->window.bg_color));
lv_style_set_layout(&(styles.window), LV_LAYOUT_FLEX);
lv_style_set_flex_flow(&(styles.window), LV_FLEX_FLOW_COLUMN);
reset_style(&(styles.header));
lv_style_set_bg_opa(&(styles.header), LV_OPA_COVER);

View file

@ -1085,7 +1085,7 @@ static const bbx_theme nord_dark = {
}
},
.label = {
.fg_color = 0x070c0d
.fg_color = NORD5
},
.msgbox = {
.fg_color = NORD6,