| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface> |
| 3 |
<requires lib="gtk" version="4.0"/> |
| 4 |
<requires lib="libadwaita" version="1.0"/> |
| 5 |
<template class="AdwDemoPageClamp" parent="AdwBin"> |
| 6 |
<property name="child"> |
| 7 |
<object class="AdwToolbarView"> |
| 8 |
<child type="top"> |
| 9 |
<object class="AdwHeaderBar"> |
| 10 |
<property name="show-title">False</property> |
| 11 |
</object> |
| 12 |
</child> |
| 13 |
<property name="content"> |
| 14 |
<object class="AdwStatusPage"> |
| 15 |
<property name="icon-name">widget-clamp-symbolic</property> |
| 16 |
<property name="title" translatable="yes">Clamp</property> |
| 17 |
<property name="description" translatable="yes">This page is clamped to smoothly grow up to a maximum width</property> |
| 18 |
<property name="child"> |
| 19 |
<object class="AdwClamp"> |
| 20 |
<property name="maximum-size" bind-source="maximum_size_adjustment" bind-property="value" bind-flags="sync-create"/> |
| 21 |
<property name="tightening-threshold" bind-source="tightening_threshold_adjustment" bind-property="value" bind-flags="sync-create"/> |
| 22 |
<property name="unit" bind-source="unit_row" bind-property="selected" bind-flags="sync-create"/> |
| 23 |
<property name="child"> |
| 24 |
<object class="AdwPreferencesGroup"> |
| 25 |
<child> |
| 26 |
<object class="AdwSpinRow"> |
| 27 |
<property name="title" translatable="yes">Maximum Width</property> |
| 28 |
<property name="adjustment"> |
| 29 |
<object class="GtkAdjustment" id="maximum_size_adjustment"> |
| 30 |
<property name="lower">0</property> |
| 31 |
<property name="upper">10000</property> |
| 32 |
<property name="value">400</property> |
| 33 |
<property name="page-increment">100</property> |
| 34 |
<property name="step-increment">10</property> |
| 35 |
</object> |
| 36 |
</property> |
| 37 |
</object> |
| 38 |
</child> |
| 39 |
<child> |
| 40 |
<object class="AdwSpinRow"> |
| 41 |
<property name="title" translatable="yes">Tightening Threshold</property> |
| 42 |
<property name="adjustment"> |
| 43 |
<object class="GtkAdjustment" id="tightening_threshold_adjustment"> |
| 44 |
<property name="lower">0</property> |
| 45 |
<property name="upper">10000</property> |
| 46 |
<property name="value">300</property> |
| 47 |
<property name="page-increment">100</property> |
| 48 |
<property name="step-increment">10</property> |
| 49 |
</object> |
| 50 |
</property> |
| 51 |
</object> |
| 52 |
</child> |
| 53 |
<child> |
| 54 |
<object class="AdwComboRow" id="unit_row"> |
| 55 |
<property name="title" translatable="yes">Unit</property> |
| 56 |
<property name="model"> |
| 57 |
<object class="AdwEnumListModel"> |
| 58 |
<property name="enum-type">AdwLengthUnit</property> |
| 59 |
</object> |
| 60 |
</property> |
| 61 |
<property name="expression"> |
| 62 |
<lookup type="AdwEnumListItem" name="nick"/> |
| 63 |
</property> |
| 64 |
<property name="selected">2</property> |
| 65 |
</object> |
| 66 |
</child> |
| 67 |
</object> |
| 68 |
</property> |
| 69 |
</object> |
| 70 |
</property> |
| 71 |
</object> |
| 72 |
</property> |
| 73 |
</object> |
| 74 |
</property> |
| 75 |
</template> |
| 76 |
</interface> |