File: window.ui

package info (click to toggle)
gnome-weather 48.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,720 kB
  • sloc: javascript: 2,221; python: 98; xml: 83; makefile: 6
file content (109 lines) | stat: -rw-r--r-- 4,796 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0" />
  <menu id="primary-menu">
    <section>
      <attribute translatable="yes" name="label">Temperature Unit</attribute>
      <item>
        <attribute translatable="yes" name="label">_Celsius</attribute>
        <attribute name="action">app.temperature-unit</attribute>
        <attribute name="target">centigrade</attribute>
      </item>
      <item>
        <attribute translatable="yes" name="label">_Fahrenheit</attribute>
        <attribute name="action">app.temperature-unit</attribute>
        <attribute name="target">fahrenheit</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="action">win.about</attribute>
        <attribute name="label" translatable="yes">_About Weather</attribute>
      </item>
    </section>
  </menu>
  <template class="Gjs_MainWindow">
    <property name="default_width">1050</property>
    <property name="default_height">650</property>
    <child>
      <object class="GtkStack" id="stack">
        <property name="transition_type">crossfade</property>
        <child>
          <object class="AdwToolbarView" id="searchView">
            <child type="top">
              <object class="AdwHeaderBar">
                <property name="show-title">False</property>
                <child type="end">
                  <object class="GtkMenuButton">
                    <property name="valign">center</property>
                    <property name="menu_model">primary-menu</property>
                    <property name="icon_name">open-menu-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <property name="content">
              <object class="AdwStatusPage" id="searchViewStatus">
                <property name="title" translatable="yes">Welcome to Weather!</property>
                <property name="description" translatable="yes">To get started, select a location.</property>
                <child>
                  <object class="GtkMenuButton" id="searchButton">
                    <property name="hexpand">False</property>
                    <property name="halign">center</property>
                    <property name="width-request">146</property>
                    <property name="label" translatable="yes">Search for a city or country</property>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <child>
          <object class="AdwToolbarView" id="cityBox">
            <child type="top">
              <object class="AdwHeaderBar" id="header">
                <property name="centering_policy">strict</property>
                <child type="start">
                  <object class="GtkRevealer" id="refreshRevealer">
                    <property name="transition_type">crossfade</property>
                    <property name="child">
                      <object class="GtkButton" id="refresh">
                        <property name="valign">center</property>
                        <property name="tooltip-text" translatable="yes">Refresh</property>
                        <property name="action_name">win.refresh</property>
                        <property name="icon_name">view-refresh-symbolic</property>
                      </object>
                    </property>
                  </object>
                </child>
                <child type="title">
                  <object class="AdwViewSwitcherTitle" id="forecastStackSwitcher">
                    <property name="title" translatable="yes">Weather</property>
                  </object>
                </child>
                <child type="end">
                  <object class="GtkMenuButton">
                    <property name="tooltip-text" translatable="yes">Main Menu</property>
                    <property name="valign">center</property>
                    <property name="menu_model">primary-menu</property>
                    <property name="icon_name">open-menu-symbolic</property>
                    <property name="primary">true</property>
                  </object>
                </child>
              </object>
            </child>
            <property name="content">
              <object class="AdwBin" id="cityBin"/>
            </property>
            <child type="bottom">
              <object class="AdwViewSwitcherBar" id="forecastStackSwitcherBar">
                <property name="reveal" bind-source="forecastStackSwitcher" bind-property="title-visible" bind-flags="sync-create" />
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>