diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-13 22:43:30 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-13 22:43:30 +0300 |
commit | 395615d0aff7499e905eb5e768a2a46395bb8dc2 (patch) | |
tree | 4a3494ba0f695d1a254ea17097e908bbf99f30fc /src | |
parent | f8b7d6044d43387679620e7f268f531a42a0013e (diff) |
Added View menu items for zooming
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 9c1b9bbe..112b44eb 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -96,6 +96,10 @@ static const iMenuItem editMenuItems[] = { | |||
96 | }; | 96 | }; |
97 | 97 | ||
98 | static const iMenuItem viewMenuItems[] = { | 98 | static const iMenuItem viewMenuItems[] = { |
99 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, | ||
100 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, | ||
101 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, | ||
102 | { "---", 0, 0, NULL }, | ||
99 | { "Toggle Sidebar", SDLK_s, KMOD_PRIMARY | KMOD_ALT, "sidebar.toggle" }, | 103 | { "Toggle Sidebar", SDLK_s, KMOD_PRIMARY | KMOD_ALT, "sidebar.toggle" }, |
100 | }; | 104 | }; |
101 | #endif | 105 | #endif |
@@ -248,7 +252,7 @@ static void setupUserInterface_Window(iWindow *d) { | |||
248 | addChild_Widget(div, iClob(navBar)); | 252 | addChild_Widget(div, iClob(navBar)); |
249 | setBackgroundColor_Widget(navBar, gray25_ColorId); | 253 | setBackgroundColor_Widget(navBar, gray25_ColorId); |
250 | setCommandHandler_Widget(navBar, handleNavBarCommands_); | 254 | setCommandHandler_Widget(navBar, handleNavBarCommands_); |
251 | addChild_Widget(navBar, iClob(newIcon_LabelWidget(" \U0001f850 ", 0, 0, "navigate.back"))); | 255 | addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f850", 0, 0, "navigate.back"))); |
252 | addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f852", 0, 0, "navigate.forward"))); | 256 | addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f852", 0, 0, "navigate.forward"))); |
253 | addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f3e0", 0, 0, "navigate.home"))); | 257 | addChild_Widget(navBar, iClob(newIcon_LabelWidget("\U0001f3e0", 0, 0, "navigate.home"))); |
254 | iLabelWidget *lock = | 258 | iLabelWidget *lock = |