summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-04 07:40:56 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-04 07:40:56 +0200
commit723fcbf263bd2f5ff6c259a47091ebf685b50723 (patch)
tree5ed11977ee09fa542ed62a12c73117a27140d04e /src/ui/widget.h
parentad86fbe2cffa2bea07d004782e711932c5c91a79 (diff)
Mobile: Sidebar is now a vertically sliding panel
Switched the phone sidebar to use the iOS half/full-height sliding sheet design. This is better for finger reachability and for retaining access to the current page.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 4025f5c5..35be1bcb 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -123,6 +123,10 @@ enum iWidgetFlag {
123#define refChildrenOffset_WidgetFlag iBit64(63) /* visual offset determined by the offset of referenced children */ 123#define refChildrenOffset_WidgetFlag iBit64(63) /* visual offset determined by the offset of referenced children */
124#define nativeMenu_WidgetFlag iBit64(64) 124#define nativeMenu_WidgetFlag iBit64(64)
125 125
126enum iWidgetFlag2 {
127 slidingSheetDraggable_WidgetFlag2 = iBit(1),
128};
129
126enum iWidgetAddPos { 130enum iWidgetAddPos {
127 back_WidgetAddPos, 131 back_WidgetAddPos,
128 front_WidgetAddPos, 132 front_WidgetAddPos,
@@ -139,6 +143,7 @@ struct Impl_Widget {
139 iObject object; 143 iObject object;
140 iString id; 144 iString id;
141 int64_t flags; 145 int64_t flags;
146 int flags2;
142 iRect rect; 147 iRect rect;
143 iInt2 minSize; 148 iInt2 minSize;
144 iWidget * sizeRef; 149 iWidget * sizeRef;