Store themes as references to avoid passing large structs by value

This commit is contained in:
Johannes Marbach 2023-07-28 20:18:54 +02:00
parent d25f504b15
commit 1ebf67b850
3 changed files with 8 additions and 8 deletions

2
main.c
View file

@ -222,7 +222,7 @@ static void toggle_theme(void) {
}
static void set_theme(bool is_alternate) {
ul_theme_apply(&(ul_themes_themes[is_alternate ? conf_opts.theme.alternate_id : conf_opts.theme.default_id]));
ul_theme_apply(ul_themes_themes[is_alternate ? conf_opts.theme.alternate_id : conf_opts.theme.default_id]);
}
static void toggle_pw_btn_clicked_cb(lv_event_t *event) {