diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-19 14:11:57 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-19 14:11:57 +0200 |
commit | 610bd7f31399a292216f66832cca843fc69a10de (patch) | |
tree | a6458e91a33bdb162ba4df5c350ba8e319864c55 /src/ui | |
parent | 7a0980fd58308f7333254a1276e6dd5072326d98 (diff) |
iOS: Further tweaks for mobile
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/scrollwidget.c | 2 | ||||
-rw-r--r-- | src/ui/window.c | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/src/ui/scrollwidget.c b/src/ui/scrollwidget.c index 34efba67..448103b5 100644 --- a/src/ui/scrollwidget.c +++ b/src/ui/scrollwidget.c | |||
@@ -137,7 +137,7 @@ static void draw_ScrollWidget_(const iScrollWidget *d) { | |||
137 | if (bounds.size.x > 0) { | 137 | if (bounds.size.x > 0) { |
138 | iPaint p; | 138 | iPaint p; |
139 | init_Paint(&p); | 139 | init_Paint(&p); |
140 | drawVLine_Paint(&p, topLeft_Rect(bounds), height_Rect(bounds), uiSeparator_ColorId); | 140 | //drawVLine_Paint(&p, topLeft_Rect(bounds), height_Rect(bounds), uiSeparator_ColorId); |
141 | const iRect thumbRect = shrunk_Rect( | 141 | const iRect thumbRect = shrunk_Rect( |
142 | thumbRect_ScrollWidget_(d), init_I2(isPressed ? gap_UI : (gap_UI * 4 / 3), gap_UI / 2)); | 142 | thumbRect_ScrollWidget_(d), init_I2(isPressed ? gap_UI : (gap_UI * 4 / 3), gap_UI / 2)); |
143 | fillRect_Paint(&p, thumbRect, isPressed ? uiBackgroundPressed_ColorId : tmQuote_ColorId); | 143 | fillRect_Paint(&p, thumbRect, isPressed ? uiBackgroundPressed_ColorId : tmQuote_ColorId); |
diff --git a/src/ui/window.c b/src/ui/window.c index 75dffb56..38df8682 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -136,6 +136,7 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) { | |||
136 | #endif | 136 | #endif |
137 | 137 | ||
138 | #if !defined (iHaveNativeMenus) | 138 | #if !defined (iHaveNativeMenus) |
139 | #if !defined (iPlatformAppleMobile) | ||
139 | /* TODO: Submenus wouldn't hurt here. */ | 140 | /* TODO: Submenus wouldn't hurt here. */ |
140 | static const iMenuItem navMenuItems_[] = { | 141 | static const iMenuItem navMenuItems_[] = { |
141 | { "New Tab", 't', KMOD_PRIMARY, "tabs.new" }, | 142 | { "New Tab", 't', KMOD_PRIMARY, "tabs.new" }, |
@@ -162,6 +163,31 @@ static const iMenuItem navMenuItems_[] = { | |||
162 | { "---", 0, 0, NULL }, | 163 | { "---", 0, 0, NULL }, |
163 | { "Quit Lagrange", 'q', KMOD_PRIMARY, "quit" } | 164 | { "Quit Lagrange", 'q', KMOD_PRIMARY, "quit" } |
164 | }; | 165 | }; |
166 | #else | ||
167 | static const iMenuItem navMenuItems_[] = { | ||
168 | { "New Tab", 't', KMOD_PRIMARY, "tabs.new" }, | ||
169 | { "Close Tab", 'w', KMOD_PRIMARY, "tabs.close" }, | ||
170 | { "---", 0, 0, NULL }, | ||
171 | { "Save to Downloads", SDLK_s, KMOD_PRIMARY, "document.save" }, | ||
172 | { "Copy Source Text", SDLK_c, KMOD_PRIMARY, "copy" }, | ||
173 | { "---", 0, 0, NULL }, | ||
174 | { "Toggle Left Sidebar", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" }, | ||
175 | { "Toggle Right Sidebar", SDLK_p, KMOD_PRIMARY | KMOD_SHIFT, "sidebar2.toggle" }, | ||
176 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, | ||
177 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, | ||
178 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, | ||
179 | { "---", 0, 0, NULL }, | ||
180 | { "List All Bookmarks", 0, 0, "!open url:about:bookmarks" }, | ||
181 | { "List Bookmarks by Tag", 0, 0, "!open url:about:bookmarks?tags" }, | ||
182 | { "List Bookmarks by Creation Time", 0, 0, "!open url:about:bookmarks?created" }, | ||
183 | { "---", 0, 0, NULL }, | ||
184 | { "Show Feed Entries", 0, 0, "!open url:about:feeds" }, | ||
185 | { "---", 0, 0, NULL }, | ||
186 | { "Preferences...", SDLK_COMMA, KMOD_PRIMARY, "preferences" }, | ||
187 | { "Help", SDLK_F1, 0, "!open url:about:help" }, | ||
188 | { "Release Notes", 0, 0, "!open url:about:version" }, | ||
189 | }; | ||
190 | #endif /* AppleMobile */ | ||
165 | #endif | 191 | #endif |
166 | 192 | ||
167 | #if defined (iHaveNativeMenus) | 193 | #if defined (iHaveNativeMenus) |