Store themes as references to avoid passing large structs by value
This commit is contained in:
parent
d25f504b15
commit
1ebf67b850
3 changed files with 8 additions and 8 deletions
2
main.c
2
main.c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue