diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-09 22:44:45 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-09 22:44:45 +0200 |
commit | 2002543dbedcc1666d02d11fbde55f794d692bb7 (patch) | |
tree | 853412e7593d4a1ca3f0ccdc5ca31466a3400463 /src/app.c | |
parent | 5ccb0e0096dff6c2bbdfa959610620a14fdc918d (diff) |
Mobile: Revising phone-style dialogs
Sliding panels and left-edge swipes.
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 | ||