diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-20 11:40:44 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-20 11:40:44 +0300 |
commit | 709329cef2fe3cd88d6a4e27389b64431f5936f6 (patch) | |
tree | f12cafbdb00325030760e2f2d89b5fce4c0177f7 /src/ui/sidebarwidget.c | |
parent | 3bbe6b3c73f8c512279b1dd8d164d302d5e96752 (diff) |
Dialog show/hide animations
Use the animations introduced for mobile on desktop as well. Adding a
preference for this might be prudent.
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 86410d11..ac2d147e 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -1460,7 +1460,8 @@ static void draw_SidebarWidget_(const iSidebarWidget *d) { | |||
1460 | const iRect bounds = bounds_Widget(w); | 1460 | const iRect bounds = bounds_Widget(w); |
1461 | iPaint p; | 1461 | iPaint p; |
1462 | init_Paint(&p); | 1462 | init_Paint(&p); |
1463 | if (flags_Widget(w) & visualOffset_WidgetFlag && isVisible_Widget(w)) { | 1463 | if (flags_Widget(w) & visualOffset_WidgetFlag && |
1464 | flags_Widget(w) & horizontalOffset_WidgetFlag && isVisible_Widget(w)) { | ||
1464 | fillRect_Paint(&p, boundsWithoutVisualOffset_Widget(w), tmBackground_ColorId); | 1465 | fillRect_Paint(&p, boundsWithoutVisualOffset_Widget(w), tmBackground_ColorId); |
1465 | } | 1466 | } |
1466 | draw_Widget(w); | 1467 | draw_Widget(w); |