@@ -32,7 +32,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
32
32
<template class =" NvidiaExtensionMainWindow" parent =" GtkApplicationWindow" >
33
33
<!-- Properties -->
34
34
<property name =" title" translatable =" yes" >Nvidia App</property >
35
- <property name =" width-request" >360</property >
36
35
37
36
<!-- Children -->
38
37
<child type =" titlebar" >
@@ -67,35 +66,38 @@ SPDX-License-Identifier: GPL-3.0-or-later
67
66
<!-- Properties -->
68
67
<property name =" hscrollbar-policy" >never</property >
69
68
<property name =" min-content-height" >750</property >
69
+ <property name =" min-content-width" >500</property >
70
70
<property name =" vexpand" >True</property >
71
+ <property name =" hexpand" >True</property >
71
72
72
73
<!-- Children -->
73
74
<property name =" child" >
74
75
<object class =" AdwClamp" >
75
76
<property name =" child" >
76
77
<object class =" AdwLeaflet" >
77
78
<!-- Properties -->
78
- <property name =" orientation" >horizontal</property >
79
- <property name =" margin-top" >12</property >
80
- <property name =" margin-bottom" >12</property >
81
- <property name =" margin-start" >12</property >
82
- <property name =" margin-end" >12</property >
83
- <property name =" vexpand" >True</property >
84
- <property name =" hexpand" >True</property >
79
+ <property name =" transition-type" >slide</property >
80
+ <property name =" visible-child" >content</property >
85
81
86
82
<!-- Content -->
87
83
<!-- Children -->
88
84
<child >
89
- <object class =" GtkBox" >
85
+ <object class =" GtkBox" id = " sidebar " >
90
86
<!-- Properties -->
91
87
<property name =" orientation" >vertical</property >
88
+
89
+ <property name =" vexpand" >True</property >
90
+ <property name =" hexpand" >True</property >
91
+ <property name =" halign" >fill</property >
92
+ <!--
93
+ <property name="width-request">250</property>
94
+ -->
95
+
92
96
<property name =" margin-top" >12</property >
93
97
<property name =" margin-bottom" >12</property >
94
98
<property name =" margin-start" >12</property >
95
99
<property name =" margin-end" >12</property >
96
100
<property name =" spacing" >12</property >
97
- <property name =" vexpand" >True</property >
98
- <property name =" hexpand" >True</property >
99
101
100
102
<!-- Children -->
101
103
<child >
@@ -107,44 +109,16 @@ SPDX-License-Identifier: GPL-3.0-or-later
107
109
<!-- Children -->
108
110
<child >
109
111
<object class =" GtkListBox" id =" cards_list" >
112
+ <!-- Properties -->
110
113
<property name =" show-separators" >True</property >
114
+
115
+ <!-- Signals -->
111
116
<signal name =" row_activated" handler =" card_selected" swapped =" true" />
112
- <!-- Properties -->
113
- <!--
114
- <property name="valign">start</property>
115
- <property name="visible">False</property>
116
- <property name="selection-mode">none</property>
117
- -->
117
+
118
118
<!-- Style Info -->
119
119
<style >
120
120
<class name =" boxed-list" />
121
121
</style >
122
-
123
- <!-- Children - ->
124
- <child>
125
- <object class="AdwActionRow">
126
- <!- - Properties - ->
127
- <property name="title">Card 1</property>
128
- <property name="subtitle">Nvidia 9090 Ti</property>
129
- <property name="activatable">true</property>
130
- <property name="selectable">true</property>
131
- <!- - Signals - ->
132
- <signal name="activated" handler="card_selected"/>
133
- </object>
134
- </child>
135
- <child>
136
- <object class="AdwActionRow">
137
- <!- - Properties - ->
138
- <property name="title">Card 2</property>
139
- <property name="subtitle">Nvidia Infinity and Beyond</property>
140
- <property name="activatable">true</property>
141
- <property name="selectable">true</property>
142
-
143
- <signal name="activated" handler="card_selected"/>
144
- </object>
145
- </child>
146
- <!- - -->
147
-
148
122
</object >
149
123
</child >
150
124
@@ -154,8 +128,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
154
128
<child >
155
129
<object class =" NvidiaMonitorRustCustomButton" id =" refresh_button" >
156
130
<!-- Properties -->
157
- <property name =" label" >Refresh </property >
131
+ <property name =" label" >Scan for GPUs </property >
158
132
133
+ <!-- Signals -->
159
134
<signal name =" clicked" handler =" refresh_cards" swapped =" true" />
160
135
</object >
161
136
</child >
@@ -171,32 +146,45 @@ SPDX-License-Identifier: GPL-3.0-or-later
171
146
</child >
172
147
173
148
<child >
174
- <object class =" GtkBox" >
149
+ <object class =" GtkBox" id = " content " >
175
150
<!-- Properties -->
176
151
<property name =" orientation" >vertical</property >
152
+ <property name =" vexpand" >True</property >
153
+ <property name =" hexpand" >True</property >
154
+ <!--
155
+ <property name="halign">fill</property>
156
+ <property name="width-request">500</property>
157
+ -->
158
+
177
159
<property name =" margin-top" >12</property >
178
160
<property name =" margin-bottom" >12</property >
179
161
<property name =" margin-start" >12</property >
180
162
<property name =" margin-end" >12</property >
181
163
<property name =" spacing" >12</property >
182
- <property name =" vexpand" >True</property >
183
- <property name =" hexpand" >True</property >
184
164
185
- <!-- Children -->
186
165
<child >
187
- <object class =" GtkButton " >
188
- <property name = " label " >This should be in the right hand pane</ property >
189
- </ object >
190
- </ child >
166
+ <object class =" GtkScrolledWindow " >
167
+ <!-- Properties -- >
168
+ < property name = " vexpand " >True</ property >
169
+ < property name = " hexpand " >True</ property >
191
170
192
- <!--
193
- <child>
194
- <object class="GtkEntry" id="entry">
195
- <property name="placeholder-text" translatable="yes">Enter a Task…</property>
196
- <property name="secondary-icon-name">list-add-symbolic</property>
171
+ <!-- Children -->
172
+ <child >
173
+ <object class =" GtkButton" >
174
+ <property name =" label" >This should be in the right hand pane</property >
175
+ </object >
176
+ </child >
177
+
178
+ <!--
179
+ <child>
180
+ <object class="GtkEntry" id="entry">
181
+ <property name="placeholder-text" translatable="yes">Enter a Task…</property>
182
+ <property name="secondary-icon-name">list-add-symbolic</property>
183
+ </object>
184
+ </child>
185
+ -->
197
186
</object >
198
187
</child >
199
- -->
200
188
201
189
</object >
202
190
</child >
0 commit comments