Skip to content

Commit

Permalink
Rename theme
Browse files Browse the repository at this point in the history
  • Loading branch information
gdyuldin committed Nov 2, 2024
1 parent 641a909 commit 98c66c9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/dialog_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ static uint8_t make_theme(uint8_t row) {
lv_label_set_text(obj, "Theme");
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_START, col++, 1, LV_GRID_ALIGN_CENTER, row, 1);

obj = dropdown_uint8_custom_cb(grid, &params.theme, " Dimmed \n Legacy", theme_update_cb);
obj = dropdown_uint8_custom_cb(grid, &params.theme, " Simple \n Legacy", theme_update_cb);

lv_obj_set_size(obj, SMALL_6, 56);
lv_obj_set_grid_cell(obj, LV_GRID_ALIGN_START, 1, 6, LV_GRID_ALIGN_CENTER, row, 1);
Expand Down
2 changes: 1 addition & 1 deletion src/params/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ params_t params = {

.wifi_enabled = { .x = false, .name="wifi_enabled" },

.theme = { .x = THEME_DIMMED, .name="theme"},
.theme = { .x = THEME_SIMPLE, .name="theme"},
};

transverter_t params_transverter[TRANSVERTER_NUM] = {
Expand Down
2 changes: 1 addition & 1 deletion src/params/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ typedef enum {

/* Themes */
typedef enum {
THEME_DIMMED,
THEME_SIMPLE,
THEME_LEGACY,
} themes_t;

Expand Down
8 changes: 4 additions & 4 deletions src/styles.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ lv_style_t cw_tune_style;
lv_color_t bg_color;

static void setup_theme_legacy();
static void setup_theme_dimmed();
static void setup_theme_simple();

void styles_init(themes_t theme) {
/* * */
Expand Down Expand Up @@ -278,9 +278,9 @@ void styles_set_theme(themes_t theme) {
case THEME_LEGACY:
setup_theme_legacy();
break;
case THEME_DIMMED:
case THEME_SIMPLE:
default:
setup_theme_dimmed();
setup_theme_simple();
break;
}
}
Expand Down Expand Up @@ -317,7 +317,7 @@ static void setup_theme_legacy() {
lv_obj_invalidate(lv_scr_act());
}

static void setup_theme_dimmed() {
static void setup_theme_simple() {
wf_palette = wf_palette_gauss;

bg_color = lv_color_hex(0x27313a);
Expand Down

0 comments on commit 98c66c9

Please sign in to comment.