summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-29 08:06:19 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-29 08:06:19 +0300
commit55e0f439cc4c32df2d280487031f789b63a9e287 (patch)
treed94e71788d767e1023dc2c0bec4712093ca5ff37 /src/app.c
parent53a3381dc9ccf9ca50b99b16bcc82919e9f31e4d (diff)
Preferences: Added toggle for UI animations
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index bb3afea6..663fa2e8 100644
--- a/src/app.c
+++ b/src/app.c
@@ -213,6 +213,7 @@ static iString *serializePrefs_App_(const iApp *d) {
213 appendFormat_String(str, "decodeurls arg:%d\n", d->prefs.decodeUserVisibleURLs); 213 appendFormat_String(str, "decodeurls arg:%d\n", d->prefs.decodeUserVisibleURLs);
214 appendFormat_String(str, "linewidth.set arg:%d\n", d->prefs.lineWidth); 214 appendFormat_String(str, "linewidth.set arg:%d\n", d->prefs.lineWidth);
215 /* TODO: Set up an array of booleans in Prefs and do these in a loop. */ 215 /* TODO: Set up an array of booleans in Prefs and do these in a loop. */
216 appendFormat_String(str, "prefs.animate.changed arg:%d\n", d->prefs.uiAnimations);
216 appendFormat_String(str, "prefs.mono.gemini.changed arg:%d\n", d->prefs.monospaceGemini); 217 appendFormat_String(str, "prefs.mono.gemini.changed arg:%d\n", d->prefs.monospaceGemini);
217 appendFormat_String(str, "prefs.mono.gopher.changed arg:%d\n", d->prefs.monospaceGopher); 218 appendFormat_String(str, "prefs.mono.gopher.changed arg:%d\n", d->prefs.monospaceGopher);
218 appendFormat_String(str, "prefs.boldlink.dark.changed arg:%d\n", d->prefs.boldLinkDark); 219 appendFormat_String(str, "prefs.boldlink.dark.changed arg:%d\n", d->prefs.boldLinkDark);
@@ -2108,6 +2109,10 @@ iBool handleCommand_App(const char *cmd) {
2108 d->prefs.openArchiveIndexPages = arg_Command(cmd) != 0; 2109 d->prefs.openArchiveIndexPages = arg_Command(cmd) != 0;
2109 return iTrue; 2110 return iTrue;
2110 } 2111 }
2112 else if (equal_Command(cmd, "prefs.animate.changed")) {
2113 d->prefs.uiAnimations = arg_Command(cmd) != 0;
2114 return iTrue;
2115 }
2111 else if (equal_Command(cmd, "saturation.set")) { 2116 else if (equal_Command(cmd, "saturation.set")) {
2112 d->prefs.saturation = (float) arg_Command(cmd) / 100.0f; 2117 d->prefs.saturation = (float) arg_Command(cmd) / 100.0f;
2113 if (!isFrozen) { 2118 if (!isFrozen) {
@@ -2350,6 +2355,7 @@ iBool handleCommand_App(const char *cmd) {
2350 setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages); 2355 setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages);
2351 setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); 2356 setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme);
2352 setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame); 2357 setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame);
2358 setToggle_Widget(findChild_Widget(dlg, "prefs.animate"), d->prefs.uiAnimations);
2353 setText_InputWidget(findChild_Widget(dlg, "prefs.userfont"), &d->prefs.symbolFontPath); 2359 setText_InputWidget(findChild_Widget(dlg, "prefs.userfont"), &d->prefs.symbolFontPath);
2354 updatePrefsPinSplitButtons_(dlg, d->prefs.pinSplit); 2360 updatePrefsPinSplitButtons_(dlg, d->prefs.pinSplit);
2355 updateDropdownSelection_(findChild_Widget(dlg, "prefs.uilang"), cstr_String(&d->prefs.uiLanguage)); 2361 updateDropdownSelection_(findChild_Widget(dlg, "prefs.uilang"), cstr_String(&d->prefs.uiLanguage));