summaryrefslogtreecommitdiff
path: root/src/ui/mobile.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-20 14:30:24 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-20 14:30:24 +0300
commit4b50a09a4c835c23ff0ff389e976f2539d41f61b (patch)
tree49c076d28c518eb9573e8641d839cf40767d22c5 /src/ui/mobile.c
parente9ef84a9ef0ff65332071f8fbe8bd49f498324fe (diff)
Added a preference variable for UI animations
Not yet in the UI, though.
Diffstat (limited to 'src/ui/mobile.c')
-rw-r--r--src/ui/mobile.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c
index d678f3e1..263fc141 100644
--- a/src/ui/mobile.c
+++ b/src/ui/mobile.c
@@ -788,13 +788,15 @@ void setupMenuTransition_Mobile(iWidget *sheet, iBool isIncoming) {
788 788
789void setupSheetTransition_Mobile(iWidget *sheet, iBool isIncoming) { 789void setupSheetTransition_Mobile(iWidget *sheet, iBool isIncoming) {
790 if (!useMobileSheetLayout_()) { 790 if (!useMobileSheetLayout_()) {
791 setFlags_Widget(sheet, horizontalOffset_WidgetFlag, iFalse); 791 if (prefs_App()->uiAnimations) {
792 if (isIncoming) { 792 setFlags_Widget(sheet, horizontalOffset_WidgetFlag, iFalse);
793 setVisualOffset_Widget(sheet, -height_Widget(sheet), 0, 0); 793 if (isIncoming) {
794 setVisualOffset_Widget(sheet, 0, 200, easeOut_AnimFlag | softer_AnimFlag); 794 setVisualOffset_Widget(sheet, -height_Widget(sheet), 0, 0);
795 } 795 setVisualOffset_Widget(sheet, 0, 200, easeOut_AnimFlag | softer_AnimFlag);
796 else { 796 }
797 setVisualOffset_Widget(sheet, -height_Widget(sheet), 200, easeIn_AnimFlag); 797 else {
798 setVisualOffset_Widget(sheet, -height_Widget(sheet), 200, easeIn_AnimFlag);
799 }
798 } 800 }
799 return; 801 return;
800 } 802 }