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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<menu id="primary_menu">
<section>
<!-- <item> -->
<!-- <attribute name="label" translatable="yes">_Preferences</attribute> -->
<!-- <attribute name="action">app.preferences</attribute> -->
<!-- </item> -->
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">app.shortcuts</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Sunrise</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
<template class="ExampleApplicationWindow" parent="AdwApplicationWindow">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="AdwHeaderBar" id="headerbar">
<child type="end">
<object class="GtkMenuButton" id="appmenu_button">
<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">Main Menu</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Sun Times</property>
<child type="header-suffix">
<object class="GtkDropDown" id="location">
<property name="enable-search">True</property>
<property name="search-match-mode">prefix</property>
<property name="expression">
<lookup type="GtkStringObject" name="string"></lookup>
</property>
</object>
</child>
<child>
<object class="AdwSpinRow" id="date">
<property name="title" translatable="yes">Date</property>
<property name="wrap">True</property>
<property name="adjustment">
<object class="GtkAdjustment">
<property name="lower">-365</property>
<property name="upper">365</property>
<property name="value">0</property>
<property name="page-increment">1</property>
<property name="step-increment">1</property>
</object>
</property>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Sunrise</property>
<child>
<object class="GtkLabel" id="sunrise">
<attributes>
<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
</attributes>
</object>
</child>
<child>
<object class="GtkImage">
<property name="icon-name">daytime-sunrise-symbolic</property>
<style>
<class name="sunrise-icon"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Sundown</property>
<child>
<object class="GtkLabel" id="sundown">
<attributes>
<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
</attributes>
</object>
</child>
<child>
<object class="GtkImage">
<property name="icon-name">daytime-sunset-symbolic</property>
<style>
<class name="sunset-icon"/>
</style>
</object>
</child>
</object>
</child>
<style>
<class name="asdf"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>