summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2018-08-30 11:12:02 +0200
committerChristian Dywan <christian@twotoasts.de>2018-08-30 11:12:02 +0200
commitf2af1da3f9e963983fdc39e8ebe5b5adc1b7bc3f (patch)
tree8061f34b84efb1fb005903ed5bfb2d95513cf079
parent10eca362366ed25b2b0be83eb5b814306c68ff4f (diff)
downloadmidori-git-page-menu-zoom-level.tar.gz
Implement zoom level in page menupage-menu-zoom-level
-rw-r--r--ui/menus.ui24
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/menus.ui b/ui/menus.ui
index 0f648ea0..00a23565 100644
--- a/ui/menus.ui
+++ b/ui/menus.ui
@@ -41,6 +41,30 @@
</menu>
<menu id="browser-menu">
<section>
+ <attribute name="display-hint">horizontal-buttons</attribute>
+ <item>
+ <attribute name="action">win.tab-zoom(-0.1)</attribute>
+ <attribute name="label" translatable="yes">Zoom _Out</attribute>
+ <attribute name="verb-icon">zoom-out-symbolic</attribute>
+ <attribute name="accel">&lt;Primary&gt;-</attribute>
+ </item>
+ <item>
+ <attribute name="action">win.tab-zoom</attribute>
+ <attribute name="target">1.0</attribute>
+ <attribute name="label" translatable="yes">Reset Zoom _Level</attribute>
+ <attribute name="verb-icon">zoom-original-symbolic</attribute>
+ <!--XXX<attribute name="label" translatable="no">100%</attribute>-->
+ <attribute name="accel">&lt;Primary&gt;0</attribute>
+ </item>
+ <item>
+ <attribute name="action">win.tab-zoom</attribute>
+ <attribute name="target">0.1</attribute>
+ <attribute name="label" translatable="yes">Zoom _In</attribute>
+ <attribute name="verb-icon">zoom-in-symbolic</attribute>
+ <attribute name="accel">&lt;Primary&gt;+</attribute>
+ </item>
+ </section>
+ <section>
<item>
<attribute name="action">win.find</attribute>
<attribute name="label" translatable="yes">_Find in Page</attribute>