diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1218,12 +1218,14 @@ static void updateDropdownSelection_(iLabelWidget *dropButton, const char *selec | |||
1218 | } | 1218 | } |
1219 | 1219 | ||
1220 | static void updateColorThemeButton_(iLabelWidget *button, int theme) { | 1220 | static void updateColorThemeButton_(iLabelWidget *button, int theme) { |
1221 | if (!button) return; | ||
1221 | // const char *mode = strstr(cstr_String(id_Widget(as_Widget(button))), ".dark") | 1222 | // const char *mode = strstr(cstr_String(id_Widget(as_Widget(button))), ".dark") |
1222 | // ? "dark" : "light"; | 1223 | // ? "dark" : "light"; |
1223 | updateDropdownSelection_(button, format_CStr(".set arg:%d", theme)); | 1224 | updateDropdownSelection_(button, format_CStr(".set arg:%d", theme)); |
1224 | } | 1225 | } |
1225 | 1226 | ||
1226 | static void updateFontButton_(iLabelWidget *button, int font) { | 1227 | static void updateFontButton_(iLabelWidget *button, int font) { |
1228 | if (!button) return; | ||
1227 | updateDropdownSelection_(button, format_CStr(".set arg:%d", font)); | 1229 | updateDropdownSelection_(button, format_CStr(".set arg:%d", font)); |
1228 | } | 1230 | } |
1229 | 1231 | ||