menus.ui 4.21 KB
Newer Older
1 2 3 4
<?xml version="1.0"?>
<interface>
  <menu id="appmenu">
    <section>
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
      <item>
        <attribute name="label" translatable="yes">_New</attribute>
        <attribute name="action">app.new</attribute>
        <attribute name="accel">&lt;Primary&gt;n</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Open</attribute>
        <attribute name="action">app.open</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Save</attribute>
        <attribute name="action">app.save</attribute>
        <attribute name="accel">&lt;Primary&gt;s</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Save _As...</attribute>
        <attribute name="action">app.save-as</attribute>
        <attribute name="accel">&lt;Primary&gt;s</attribute>
      </item>
24 25
    </section>
    <section>
26 27 28 29 30
      <item>
        <attribute name="label" translatable="yes">_Quit</attribute>
        <attribute name="action">app.quit</attribute>
        <attribute name="accel">&lt;Primary&gt;q</attribute>
      </item>
31 32 33
    </section>
  </menu>
  <menu id="menubar">
34 35
    <submenu>
      <attribute name="label" translatable="yes">_Preferences</attribute>
36
      <section>
37 38 39 40 41 42 43 44 45 46
        <item>
          <attribute name="label" translatable="yes">_Prefer Dark Theme</attribute>
          <attribute name="action">app.dark</attribute>
        </item>
        <item>
          <attribute name="label" translatable="yes">_Hide Titlebar when maximized</attribute>
          <attribute name="action">win.titlebar</attribute>
        </item>
        <submenu>
          <attribute name="label" translatable="yes">_Color</attribute>
47
          <section>
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
            <item>
              <attribute name="label" translatable="yes">_Red</attribute>
              <attribute name="action">app.color</attribute>
              <attribute name="target">red</attribute>
              <attribute name="accel">&lt;Primary&gt;r</attribute>
            </item>
            <item>
              <attribute name="label" translatable="yes">_Green</attribute>
              <attribute name="action">app.color</attribute>
              <attribute name="target">green</attribute>
              <attribute name="accel">&lt;Primary&gt;g</attribute>
            </item>
            <item>
              <attribute name="label" translatable="yes">_Blue</attribute>
              <attribute name="action">app.color</attribute>
              <attribute name="target">blue</attribute>
              <attribute name="accel">&lt;Primary&gt;b</attribute>
            </item>
66 67
          </section>
        </submenu>
68 69
        <submenu>
          <attribute name="label" translatable="yes">_Shape</attribute>
70
          <section>
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
            <item>
              <attribute name="label" translatable="yes">_Square</attribute>
              <attribute name="action">win.shape</attribute>
              <attribute name="target">square</attribute>
              <attribute name="accel">&lt;Primary&gt;s</attribute>
            </item>
            <item>
              <attribute name="label" translatable="yes">_Rectangle</attribute>
              <attribute name="action">win.shape</attribute>
              <attribute name="target">rectangle</attribute>
              <attribute name="accel">&lt;Primary&gt;r</attribute>
            </item>
            <item>
              <attribute name="label" translatable="yes">_Oval</attribute>
              <attribute name="action">win.shape</attribute>
              <attribute name="target">oval</attribute>
              <attribute name="accel">&lt;Primary&gt;o</attribute>
            </item>
89 90
          </section>
        </submenu>
91 92 93
        <item>
          <attribute name="label" translatable="yes">_Bold</attribute>
          <attribute name="action">win.bold</attribute>
Matthias Clasen's avatar
Matthias Clasen committed
94
          <attribute name="accel">&lt;Primary&gt;&lt;Shift&gt;b</attribute>
95
        </item>
96
      </section>
97
    </submenu>
98 99 100 101 102 103 104
    <submenu>
      <attribute name="label" translatable="yes">_Help</attribute>
      <item>
        <attribute name="label" translatable="yes">_About</attribute>
        <attribute name="action">win.about</attribute>
        <attribute name="accel">&lt;Primary&gt;a</attribute>
      </item>
105 106 107
    </submenu>
  </menu>
</interface>