window.ui 6.93 KB
Newer Older
1
<?xml version='1.0' encoding='UTF-8'?>
Roman Alifanov's avatar
Roman Alifanov committed
2
<!-- Created with Cambalache 0.90.4 -->
3 4 5 6 7 8 9 10 11 12 13
<interface>
  <!-- interface-name window.ui -->
  <requires lib="Adw" version="1.0"/>
  <requires lib="gio" version="2.0"/>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.4"/>
  <template class="XimperUnifiedThemeSwitcherGuiGtk4Window" parent="AdwApplicationWindow">
    <property name="content">
      <object class="AdwToolbarView">
        <child>
          <object class="GtkBox">
Roman Alifanov's avatar
Roman Alifanov committed
14
            <property name="margin-bottom">15</property>
15 16 17
            <property name="margin-end">15</property>
            <property name="margin-start">15</property>
            <property name="orientation">vertical</property>
Roman Alifanov's avatar
Roman Alifanov committed
18
            <property name="spacing">15</property>
19 20
            <property name="valign">start</property>
            <child>
Roman Alifanov's avatar
Roman Alifanov committed
21 22 23 24 25
              <object class="GtkLabel">
                <property name="label" translatable="yes">Choose themes for styles</property>
                <style>
                  <class name="title-3"/>
                </style>
26 27 28 29
              </object>
            </child>
            <child>
              <object class="GtkBox">
Roman Alifanov's avatar
Roman Alifanov committed
30
                <property name="spacing">15</property>
31 32 33 34
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <child>
Roman Alifanov's avatar
Roman Alifanov committed
35 36
                      <object class="AdwPreferencesGroup">
                        <property name="title">Kvantum</property>
37 38 39
                        <child>
                          <object class="AdwComboRow" id="kv_light_cr">
                            <property name="hexpand">True</property>
Roman Alifanov's avatar
Roman Alifanov committed
40
                            <property name="title" translatable="yes">_Light</property>
41 42 43 44 45 46 47
                            <property name="use-underline">True</property>
                            <property name="width-request">100</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwComboRow" id="kv_dark_cr">
                            <property name="hexpand">True</property>
Roman Alifanov's avatar
Roman Alifanov committed
48
                            <property name="title" translatable="yes">_Dark</property>
49 50 51 52 53 54
                            <property name="use-underline">True</property>
                            <property name="width-request">100</property>
                          </object>
                        </child>
                      </object>
                    </child>
Roman Alifanov's avatar
Roman Alifanov committed
55 56 57
                    <style>
                      <class name="box-border"/>
                    </style>
58 59 60 61 62 63
                  </object>
                </child>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <child>
Roman Alifanov's avatar
Roman Alifanov committed
64 65
                      <object class="AdwPreferencesGroup">
                        <property name="title">GTK</property>
66 67 68
                        <child>
                          <object class="AdwComboRow" id="gtk3_light_cr">
                            <property name="hexpand">True</property>
Roman Alifanov's avatar
Roman Alifanov committed
69
                            <property name="title" translatable="yes">_Light</property>
70 71 72 73 74 75 76
                            <property name="use-underline">True</property>
                            <property name="width-request">100</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwComboRow" id="gtk3_dark_cr">
                            <property name="hexpand">True</property>
Roman Alifanov's avatar
Roman Alifanov committed
77
                            <property name="title" translatable="yes">_Dark</property>
78 79 80 81
                            <property name="use-underline">True</property>
                            <property name="width-request">100</property>
                          </object>
                        </child>
Roman Alifanov's avatar
Roman Alifanov committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
                      </object>
                    </child>
                    <style>
                      <class name="box-border"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkToggleButton" id="change_style_btn">
                <property name="halign">center</property>
                <child>
                  <object class="GtkBox">
                    <property name="halign">center</property>
                    <property name="spacing">5</property>
                    <property name="valign">center</property>
                    <child>
                      <object class="GtkImage">
                        <property name="halign">center</property>
                        <property name="icon-name">ru.ximperlinux.UnifiedThemeSwitcher</property>
                        <property name="icon-size">large</property>
                        <property name="valign">center</property>
105
                        <style/>
Roman Alifanov's avatar
Roman Alifanov committed
106 107 108 109 110 111
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel">
                        <property name="label" translatable="yes">Dark Style</property>
                        <property name="margin-end">5</property>
112
                        <style>
Roman Alifanov's avatar
Roman Alifanov committed
113
                          <class name="maintogglelabel"/>
114 115 116
                        </style>
                      </object>
                    </child>
Roman Alifanov's avatar
Roman Alifanov committed
117
                    <style/>
118 119
                  </object>
                </child>
Roman Alifanov's avatar
Roman Alifanov committed
120 121 122
                <style>
                  <class name="maintoggle"/>
                </style>
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
              </object>
            </child>
          </object>
        </child>
        <child type="top">
          <object class="AdwHeaderBar" id="header_bar">
            <child type="end">
              <object class="GtkMenuButton">
                <property name="icon-name">open-menu-symbolic</property>
                <property name="menu-model">primary_menu</property>
                <property name="primary">True</property>
                <property name="tooltip-text" translatable="yes">Menu</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
    <property name="default-height">300</property>
    <property name="default-width">600</property>
Roman Alifanov's avatar
Roman Alifanov committed
143
    <property name="title" translatable="yes">Ximper Unified Theme Switcher</property>
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
  </template>
  <menu id="primary_menu">
    <section>
      <item>
        <attribute name="action">app.preferences</attribute>
        <attribute name="label" translatable="yes">_Preferences</attribute>
      </item>
      <item>
        <attribute name="action">win.show-help-overlay</attribute>
        <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
      </item>
      <item>
        <attribute name="action">app.about</attribute>
        <attribute name="label" translatable="yes">_About Ximper Unified Theme Switcher</attribute>
      </item>
    </section>
  </menu>
</interface>