|
233 | 233 | <property name="hexpand-set">True</property> |
234 | 234 | <property name="title" translatable="yes">Rendering</property> |
235 | 235 | <child> |
236 | | - <object class="AdwSwitchRow" id="translucency_switch"> |
| 236 | + <object class="AdwComboRow" id="translucency_switch"> |
237 | 237 | <property name="hexpand">True</property> |
238 | 238 | <property name="hexpand-set">True</property> |
239 | | - <property name="title" translatable="yes">Translucency</property> |
240 | | - <property name="active" bind-source="engine" bind-property="blending" bind-flags="bidirectional | sync-create"></property> |
| 239 | + <property name="title" translatable="yes">Blending</property> |
| 240 | + <property name="selected" bind-source="engine" bind-property="blending" bind-flags="bidirectional | sync-create"></property> |
| 241 | + <property name="model"> |
| 242 | + <object class="AdwEnumListModel"> |
| 243 | + <property name="enum-type">ExbBlending</property> |
| 244 | + </object> |
| 245 | + </property> |
| 246 | + <property name="expression"> |
| 247 | + <closure type="gchararray" function="enum_name" /> |
| 248 | + </property> |
241 | 249 | </object> |
242 | 250 | </child> |
243 | 251 | <child> |
|
259 | 267 | </object> |
260 | 268 | </child> |
261 | 269 | <child> |
262 | | - <object class="AdwSwitchRow" id="anti_aliasing_switch"> |
| 270 | + <object class="AdwComboRow" id="anti_aliasing_combo"> |
263 | 271 | <property name="hexpand">True</property> |
264 | 272 | <property name="hexpand-set">True</property> |
265 | 273 | <property name="title" translatable="yes">Anti Aliasing</property> |
266 | | - <property name="active" bind-source="engine" bind-property="anti-aliasing" bind-flags="bidirectional | sync-create"></property> |
| 274 | + <property name="selected" bind-source="engine" bind-property="anti-aliasing" bind-flags="bidirectional | sync-create"></property> |
| 275 | + <property name="model"> |
| 276 | + <object class="AdwEnumListModel"> |
| 277 | + <property name="enum-type">ExbAntiAliasing</property> |
| 278 | + </object> |
| 279 | + </property> |
| 280 | + <property name="expression"> |
| 281 | + <closure type="gchararray" function="enum_name" /> |
| 282 | + </property> |
267 | 283 | </object> |
268 | 284 | </child> |
269 | 285 | <child> |
|
325 | 341 | </child> |
326 | 342 | <child> |
327 | 343 | <object class="AdwPreferencesGroup" id="points_group"> |
328 | | - <child> |
329 | | - <object class="AdwSwitchRow" id="spheres_switch"> |
330 | | - <property name="hexpand">True</property> |
331 | | - <property name="hexpand-set">True</property> |
332 | | - <property name="title" translatable="yes">Show Point Sprites</property> |
333 | | - <property name="active" bind-source="engine" bind-property="show-sprites" bind-flags="bidirectional | sync-create"></property> |
334 | | - </object> |
335 | | - </child> |
336 | 344 | <child> |
337 | 345 | <object class="AdwComboRow" id="point_sprites_type_combo"> |
338 | 346 | <property name="title" translatable="yes">Point Sprites Type</property> |
| 347 | + <property name="selected" bind-source="engine" bind-property="sprites" bind-flags="bidirectional | sync-create"></property> |
339 | 348 | <property name="model"> |
340 | | - <object class="GtkStringList"> |
341 | | - <items> |
342 | | - <item translatable="yes">Sphere</item> |
343 | | - <item translatable="yes">Gaussian</item> |
344 | | - </items> |
| 349 | + <object class="AdwEnumListModel"> |
| 350 | + <property name="enum-type">ExbSprites</property> |
345 | 351 | </object> |
346 | 352 | </property> |
| 353 | + <property name="expression"> |
| 354 | + <closure type="gchararray" function="enum_name" /> |
| 355 | + </property> |
347 | 356 | </object> |
348 | 357 | </child> |
349 | 358 | <child> |
|
666 | 675 | <property name="hexpand">True</property> |
667 | 676 | <property name="hexpand-set">True</property> |
668 | 677 | <property name="title" translatable="yes">Up Direction</property> |
669 | | - <property name="subtitle" translatable="yes">Changing it will reload the file</property> |
| 678 | + <property name="selected" bind-source="engine" bind-property="up" bind-flags="bidirectional | sync-create"></property> |
| 679 | + <property name="model"> |
| 680 | + <object class="AdwEnumListModel"> |
| 681 | + <property name="enum-type">ExbDirection</property> |
| 682 | + </object> |
| 683 | + </property> |
| 684 | + <property name="expression"> |
| 685 | + <closure type="gchararray" function="enum_name" /> |
| 686 | + </property> |
670 | 687 | </object> |
671 | 688 | </child> |
672 | 689 | </object> |
|
0 commit comments