diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-29 08:06:19 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-29 08:06:19 +0300 |
commit | 55e0f439cc4c32df2d280487031f789b63a9e287 (patch) | |
tree | d94e71788d767e1023dc2c0bec4712093ca5ff37 /src/ui | |
parent | 53a3381dc9ccf9ca50b99b16bcc82919e9f31e4d (diff) |
Preferences: Added toggle for UI animations
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/sidebarwidget.c | 3 | ||||
-rw-r--r-- | src/ui/util.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 395138bb..27646b22 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -936,7 +936,8 @@ static iBool handleSidebarCommand_SidebarWidget_(iSidebarWidget *d, const char * | |||
936 | if (arg_Command(cmd) && isVisible_Widget(w)) { | 936 | if (arg_Command(cmd) && isVisible_Widget(w)) { |
937 | return iTrue; | 937 | return iTrue; |
938 | } | 938 | } |
939 | const iBool isAnimated = argLabel_Command(cmd, "noanim") == 0 && | 939 | const iBool isAnimated = prefs_App()->uiAnimations && |
940 | argLabel_Command(cmd, "noanim") == 0 && | ||
940 | (deviceType_App() != phone_AppDeviceType); | 941 | (deviceType_App() != phone_AppDeviceType); |
941 | int visX = 0; | 942 | int visX = 0; |
942 | if (isVisible_Widget(w)) { | 943 | if (isVisible_Widget(w)) { |
diff --git a/src/ui/util.c b/src/ui/util.c index edac214f..c4fb8886 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1698,6 +1698,8 @@ iWidget *makePreferences_Widget(void) { | |||
1698 | addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.customframe}"))); | 1698 | addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.customframe}"))); |
1699 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.customframe"))); | 1699 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.customframe"))); |
1700 | #endif | 1700 | #endif |
1701 | addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.animate}"))); | ||
1702 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.animate"))); | ||
1701 | makeTwoColumnHeading_("${heading.prefs.scrolling}", headings, values); | 1703 | makeTwoColumnHeading_("${heading.prefs.scrolling}", headings, values); |
1702 | addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.smoothscroll}"))); | 1704 | addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.smoothscroll}"))); |
1703 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.smoothscroll"))); | 1705 | addChild_Widget(values, iClob(makeToggle_Widget("prefs.smoothscroll"))); |