Changeset View
Changeset View
Standalone View
Standalone View
src/ui/advanceconfig.ui
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <ui version="4.0"> | 2 | <ui version="4.0"> | ||
3 | <class>AdvanceConfig</class> | 3 | <class>AdvanceConfig</class> | ||
4 | <widget class="QWidget" name="AdvanceConfig"> | 4 | <widget class="QWidget" name="AdvanceConfig"> | ||
5 | <property name="geometry"> | 5 | <property name="geometry"> | ||
6 | <rect> | 6 | <rect> | ||
7 | <x>0</x> | 7 | <x>0</x> | ||
8 | <y>0</y> | 8 | <y>0</y> | ||
9 | <width>500</width> | 9 | <width>547</width> | ||
10 | <height>326</height> | 10 | <height>430</height> | ||
11 | </rect> | 11 | </rect> | ||
12 | </property> | 12 | </property> | ||
13 | <layout class="QVBoxLayout" name="verticalLayout"> | 13 | <layout class="QVBoxLayout" name="verticalLayout"> | ||
14 | <item> | 14 | <item> | ||
15 | <layout class="QFormLayout" name="formLayout"> | 15 | <layout class="QFormLayout" name="formLayout"> | ||
16 | <property name="fieldGrowthPolicy"> | 16 | <property name="fieldGrowthPolicy"> | ||
17 | <enum>QFormLayout::FieldsStayAtSizeHint</enum> | 17 | <enum>QFormLayout::FieldsStayAtSizeHint</enum> | ||
18 | </property> | 18 | </property> | ||
19 | <property name="formAlignment"> | 19 | <property name="formAlignment"> | ||
20 | <set>Qt::AlignHCenter|Qt::AlignTop</set> | 20 | <set>Qt::AlignHCenter|Qt::AlignTop</set> | ||
21 | </property> | 21 | </property> | ||
22 | <item row="1" column="0"> | ||||
23 | <widget class="QLabel" name="label_3"> | ||||
24 | <property name="text"> | ||||
25 | <string>Automatically log in:</string> | ||||
26 | </property> | ||||
27 | </widget> | ||||
28 | </item> | ||||
22 | <item row="1" column="1"> | 29 | <item row="1" column="1"> | ||
23 | <layout class="QHBoxLayout" name="horizontalLayout"> | 30 | <layout class="QHBoxLayout" name="horizontalLayout"> | ||
24 | <property name="leftMargin"> | 31 | <property name="leftMargin"> | ||
25 | <number>0</number> | 32 | <number>0</number> | ||
26 | </property> | 33 | </property> | ||
27 | <property name="topMargin"> | 34 | <property name="topMargin"> | ||
28 | <number>0</number> | 35 | <number>0</number> | ||
29 | </property> | 36 | </property> | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 81 | <property name="sizePolicy"> | |||
77 | <verstretch>0</verstretch> | 84 | <verstretch>0</verstretch> | ||
78 | </sizepolicy> | 85 | </sizepolicy> | ||
79 | </property> | 86 | </property> | ||
80 | <property name="text"> | 87 | <property name="text"> | ||
81 | <string>Log in again immediately after logging off</string> | 88 | <string>Log in again immediately after logging off</string> | ||
82 | </property> | 89 | </property> | ||
83 | </widget> | 90 | </widget> | ||
84 | </item> | 91 | </item> | ||
92 | <item row="3" column="0"> | ||||
93 | <spacer name="verticalSpacer"> | ||||
94 | <property name="orientation"> | ||||
95 | <enum>Qt::Vertical</enum> | ||||
96 | </property> | ||||
97 | <property name="sizeHint" stdset="0"> | ||||
98 | <size> | ||||
99 | <width>8</width> | ||||
100 | <height>8</height> | ||||
101 | </size> | ||||
102 | </property> | ||||
103 | </spacer> | ||||
104 | </item> | ||||
105 | <item row="4" column="0"> | ||||
106 | <widget class="QLabel" name="label_7"> | ||||
107 | <property name="text"> | ||||
108 | <string>Cursor theme:</string> | ||||
109 | </property> | ||||
110 | </widget> | ||||
111 | </item> | ||||
112 | <item row="4" column="1"> | ||||
113 | <widget class="QComboBox" name="cursorList"/> | ||||
114 | </item> | ||||
115 | <item row="5" column="0"> | ||||
116 | <spacer name="verticalSpacer_2"> | ||||
117 | <property name="orientation"> | ||||
118 | <enum>Qt::Vertical</enum> | ||||
119 | </property> | ||||
120 | <property name="sizeHint" stdset="0"> | ||||
121 | <size> | ||||
122 | <width>8</width> | ||||
123 | <height>8</height> | ||||
124 | </size> | ||||
125 | </property> | ||||
126 | </spacer> | ||||
127 | </item> | ||||
85 | <item row="6" column="0"> | 128 | <item row="6" column="0"> | ||
86 | <widget class="QLabel" name="label_6"> | 129 | <widget class="QLabel" name="label_6"> | ||
87 | <property name="text"> | 130 | <property name="text"> | ||
88 | <string>Minimum user UID:</string> | 131 | <string>Minimum user UID:</string> | ||
89 | </property> | 132 | </property> | ||
90 | </widget> | 133 | </widget> | ||
91 | </item> | 134 | </item> | ||
92 | <item row="6" column="1"> | 135 | <item row="6" column="1"> | ||
Show All 24 Lines | 157 | <property name="sizePolicy"> | |||
117 | <verstretch>0</verstretch> | 160 | <verstretch>0</verstretch> | ||
118 | </sizepolicy> | 161 | </sizepolicy> | ||
119 | </property> | 162 | </property> | ||
120 | <property name="maxLength"> | 163 | <property name="maxLength"> | ||
121 | <number>6</number> | 164 | <number>6</number> | ||
122 | </property> | 165 | </property> | ||
123 | </widget> | 166 | </widget> | ||
124 | </item> | 167 | </item> | ||
168 | <item row="8" column="0"> | ||||
169 | <spacer name="verticalSpacer_3"> | ||||
170 | <property name="orientation"> | ||||
171 | <enum>Qt::Vertical</enum> | ||||
172 | </property> | ||||
173 | <property name="sizeHint" stdset="0"> | ||||
174 | <size> | ||||
175 | <width>8</width> | ||||
176 | <height>8</height> | ||||
177 | </size> | ||||
178 | </property> | ||||
179 | </spacer> | ||||
180 | </item> | ||||
125 | <item row="9" column="0"> | 181 | <item row="9" column="0"> | ||
126 | <widget class="QLabel" name="label"> | 182 | <widget class="QLabel" name="label"> | ||
127 | <property name="text"> | 183 | <property name="text"> | ||
128 | <string>Halt command:</string> | 184 | <string>Halt command:</string> | ||
129 | </property> | 185 | </property> | ||
130 | </widget> | 186 | </widget> | ||
131 | </item> | 187 | </item> | ||
132 | <item row="9" column="1"> | 188 | <item row="9" column="1"> | ||
Show All 18 Lines | 205 | <item row="10" column="1"> | |||
151 | <property name="minimumSize"> | 207 | <property name="minimumSize"> | ||
152 | <size> | 208 | <size> | ||
153 | <width>250</width> | 209 | <width>250</width> | ||
154 | <height>0</height> | 210 | <height>0</height> | ||
155 | </size> | 211 | </size> | ||
156 | </property> | 212 | </property> | ||
157 | </widget> | 213 | </widget> | ||
158 | </item> | 214 | </item> | ||
159 | <item row="1" column="0"> | 215 | <item row="12" column="0"> | ||
160 | <widget class="QLabel" name="label_3"> | 216 | <widget class="QLabel" name="label_8"> | ||
161 | <property name="text"> | 217 | <property name="text"> | ||
162 | <string>Automatically log in:</string> | 218 | <string>Settings synchronization:</string> | ||
163 | </property> | 219 | </property> | ||
164 | </widget> | 220 | </widget> | ||
165 | </item> | 221 | </item> | ||
166 | <item row="4" column="1"> | 222 | <item row="11" column="0"> | ||
167 | <widget class="QComboBox" name="cursorList"/> | 223 | <spacer name="verticalSpacer_4"> | ||
168 | </item> | | |||
169 | <item row="4" column="0"> | | |||
170 | <widget class="QLabel" name="label_7"> | | |||
171 | <property name="text"> | | |||
172 | <string>Cursor theme:</string> | | |||
173 | </property> | | |||
174 | </widget> | | |||
175 | </item> | | |||
176 | <item row="3" column="0"> | | |||
177 | <spacer name="verticalSpacer"> | | |||
178 | <property name="orientation"> | 224 | <property name="orientation"> | ||
179 | <enum>Qt::Vertical</enum> | 225 | <enum>Qt::Vertical</enum> | ||
180 | </property> | 226 | </property> | ||
181 | <property name="sizeHint" stdset="0"> | 227 | <property name="sizeHint" stdset="0"> | ||
182 | <size> | 228 | <size> | ||
183 | <width>8</width> | 229 | <width>8</width> | ||
184 | <height>8</height> | 230 | <height>8</height> | ||
185 | </size> | 231 | </size> | ||
186 | </property> | 232 | </property> | ||
187 | </spacer> | 233 | </spacer> | ||
188 | </item> | 234 | </item> | ||
189 | <item row="5" column="0"> | 235 | <item row="12" column="1"> | ||
190 | <spacer name="verticalSpacer_2"> | 236 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
191 | <property name="orientation"> | 237 | <property name="leftMargin"> | ||
192 | <enum>Qt::Vertical</enum> | 238 | <number>0</number> | ||
GB_2: It would be nice if you added the icon `view-refresh` to this button... | |||||
193 | </property> | 239 | </property> | ||
194 | <property name="sizeHint" stdset="0"> | 240 | <property name="topMargin"> | ||
195 | <size> | 241 | <number>0</number> | ||
196 | <width>8</width> | | |||
197 | <height>8</height> | | |||
198 | </size> | | |||
199 | </property> | 242 | </property> | ||
200 | </spacer> | 243 | <property name="rightMargin"> | ||
244 | <number>0</number> | ||||
245 | </property> | ||||
GB_2: ...and here the icon `document-revert` or `edit-undo`. | |||||
246 | <property name="bottomMargin"> | ||||
247 | <number>0</number> | ||||
248 | </property> | ||||
249 | <item> | ||||
250 | <widget class="QPushButton" name="syncSettings"> | ||||
251 | <property name="text"> | ||||
252 | <string>Sync</string> | ||||
253 | </property> | ||||
254 | </widget> | ||||
201 | </item> | 255 | </item> | ||
202 | <item row="8" column="0"> | 256 | <item> | ||
203 | <spacer name="verticalSpacer_3"> | 257 | <widget class="QPushButton" name="resetSettings"> | ||
204 | <property name="orientation"> | 258 | <property name="text"> | ||
205 | <enum>Qt::Vertical</enum> | 259 | <string>Reset</string> | ||
206 | </property> | 260 | </property> | ||
207 | <property name="sizeHint" stdset="0"> | 261 | </widget> | ||
262 | </item> | ||||
263 | </layout> | ||||
264 | </item> | ||||
265 | <item row="13" column="1"> | ||||
266 | <widget class="QLabel" name="label_9"> | ||||
GB_2: you theme -> your theme
desktop -> Plasma | |||||
267 | <property name="sizePolicy"> | ||||
268 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||||
269 | <horstretch>0</horstretch> | ||||
270 | <verstretch>0</verstretch> | ||||
271 | </sizepolicy> | ||||
272 | </property> | ||||
273 | <property name="minimumSize"> | ||||
208 | <size> | 274 | <size> | ||
209 | <width>8</width> | 275 | <width>300</width> | ||
210 | <height>8</height> | 276 | <height>0</height> | ||
211 | </size> | 277 | </size> | ||
212 | </property> | 278 | </property> | ||
213 | </spacer> | 279 | <property name="font"> | ||
280 | <font> | ||||
281 | <pointsize>8</pointsize> | ||||
Any tips on how to use theme's smallest font like you can in C++ and QML? The UI in Spectacle doesn't use a FormLayout and achieves it in some special way AFAIK. filipf: Any tips on how to use theme's smallest font like you can in C++ and QML?
The UI in Spectacle… | |||||
Yeah, you have to do it in C++, from within the file that reads the .ui file. Here's how it's done this way in DrKonqi, for example: https://cgit.kde.org/drkonqi.git/tree/src/bugzillaintegration/reportassistantpages_base.cpp#n159 ngraham: Yeah, you have to do it in C++, from within the file that reads the .ui file. Here's how it's… | |||||
filipf: that worked, thanks :) | |||||
282 | </font> | ||||
283 | </property> | ||||
284 | <property name="text"> | ||||
285 | <string>Settings synchronization allows you to transfer you theme customization (color scheme, font, font rendering, desktop and icon theme) to SDDM.</string> | ||||
286 | </property> | ||||
287 | <property name="scaledContents"> | ||||
288 | <bool>false</bool> | ||||
289 | </property> | ||||
290 | <property name="wordWrap"> | ||||
291 | <bool>true</bool> | ||||
292 | </property> | ||||
293 | </widget> | ||||
214 | </item> | 294 | </item> | ||
215 | </layout> | 295 | </layout> | ||
216 | </item> | 296 | </item> | ||
217 | </layout> | 297 | </layout> | ||
218 | </widget> | 298 | </widget> | ||
219 | <customwidgets> | 299 | <customwidgets> | ||
220 | <customwidget> | 300 | <customwidget> | ||
221 | <class>KUrlRequester</class> | 301 | <class>KUrlRequester</class> | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |
It would be nice if you added the icon view-refresh to this button...