summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-09 22:44:45 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-09 22:44:45 +0200
commit2002543dbedcc1666d02d11fbde55f794d692bb7 (patch)
tree853412e7593d4a1ca3f0ccdc5ca31466a3400463 /src/app.c
parent5ccb0e0096dff6c2bbdfa959610620a14fdc918d (diff)
Mobile: Revising phone-style dialogs
Sliding panels and left-edge swipes.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 9f5eef09..32255675 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1218,12 +1218,14 @@ static void updateDropdownSelection_(iLabelWidget *dropButton, const char *selec
1218} 1218}
1219 1219
1220static void updateColorThemeButton_(iLabelWidget *button, int theme) { 1220static 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
1226static void updateFontButton_(iLabelWidget *button, int font) { 1227static 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