diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index e0dfe813..2f5c428d 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -99,11 +99,19 @@ static const iMenuItem editMenuItems[] = { | |||
99 | }; | 99 | }; |
100 | 100 | ||
101 | static const iMenuItem viewMenuItems[] = { | 101 | static const iMenuItem viewMenuItems[] = { |
102 | { "Show Page Outline", '1', KMOD_PRIMARY, "sidebar.mode arg:0 show:1" }, | ||
103 | { "Show Bookmarks", '2', KMOD_PRIMARY, "sidebar.mode arg:1 show:1" }, | ||
104 | { "Show History", '3', KMOD_PRIMARY, "sidebar.mode arg:2 show:1" }, | ||
105 | { "Show Identities", '4', KMOD_PRIMARY, "sidebar.mode arg:3 show:1" }, | ||
106 | { "Toggle Sidebar", SDLK_s, KMOD_PRIMARY | KMOD_ALT, "sidebar.toggle" }, | ||
107 | { "---", 0, 0, NULL }, | ||
108 | { "Go Back", SDLK_LEFTBRACKET, KMOD_PRIMARY, "navigate.back" }, | ||
109 | { "Go Forward", SDLK_RIGHTBRACKET, KMOD_PRIMARY, "navigate.forward" }, | ||
110 | { "Reload Page", 'r', KMOD_PRIMARY, "navigate.reload" }, | ||
111 | { "---", 0, 0, NULL }, | ||
102 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, | 112 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, |
103 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, | 113 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, |
104 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, | 114 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, |
105 | { "---", 0, 0, NULL }, | ||
106 | { "Toggle Sidebar", SDLK_s, KMOD_PRIMARY | KMOD_ALT, "sidebar.toggle" }, | ||
107 | }; | 115 | }; |
108 | #endif | 116 | #endif |
109 | 117 | ||
@@ -290,7 +298,7 @@ static void setupUserInterface_Window(iWindow *d) { | |||
290 | setId_Widget(tabBar, "doctabs"); | 298 | setId_Widget(tabBar, "doctabs"); |
291 | setFlags_Widget(tabBar, expand_WidgetFlag, iTrue); | 299 | setFlags_Widget(tabBar, expand_WidgetFlag, iTrue); |
292 | setBackgroundColor_Widget(tabBar, gray25_ColorId); | 300 | setBackgroundColor_Widget(tabBar, gray25_ColorId); |
293 | appendTabPage_Widget(tabBar, iClob(new_DocumentWidget()), "Document", '1', KMOD_PRIMARY); | 301 | appendTabPage_Widget(tabBar, iClob(new_DocumentWidget()), "Document", 0, 0); |
294 | iWidget *buttons = findChild_Widget(tabBar, "tabs.buttons"); | 302 | iWidget *buttons = findChild_Widget(tabBar, "tabs.buttons"); |
295 | setFlags_Widget(buttons, collapse_WidgetFlag | hidden_WidgetFlag, iTrue); | 303 | setFlags_Widget(buttons, collapse_WidgetFlag | hidden_WidgetFlag, iTrue); |
296 | setId_Widget( | 304 | setId_Widget( |
@@ -382,7 +390,7 @@ void init_Window(iWindow *d, iRect rect) { | |||
382 | if (left_Rect(rect) >= 0) { | 390 | if (left_Rect(rect) >= 0) { |
383 | SDL_SetWindowPosition(d->win, left_Rect(rect), top_Rect(rect)); | 391 | SDL_SetWindowPosition(d->win, left_Rect(rect), top_Rect(rect)); |
384 | } | 392 | } |
385 | SDL_SetWindowMinimumSize(d->win, 640, 400); | 393 | SDL_SetWindowMinimumSize(d->win, 400, 200); |
386 | SDL_SetWindowTitle(d->win, "Lagrange"); | 394 | SDL_SetWindowTitle(d->win, "Lagrange"); |
387 | /* Some info. */ { | 395 | /* Some info. */ { |
388 | SDL_RendererInfo info; | 396 | SDL_RendererInfo info; |