summaryrefslogtreecommitdiff
path: root/lib/settings.ui
diff options
context:
space:
mode:
authorChristopher Davis <christopherdavis@gnome.org>2022-01-24 20:17:08 -0800
committerChristopher Davis <christopherdavis@gnome.org>2022-01-25 11:40:12 -0800
commitd865c348ca61172b955935546d38bd09f34ef07d (patch)
tree4c1127064cf8817af4bfa3a42aade3af7eaa80a0 /lib/settings.ui
parentc397144a53202e066ecdc85715953034038eb22a (diff)
downloadgnome-bluetooth-d865c348ca61172b955935546d38bd09f34ef07d.tar.gz
settings-widget: Use AdwPreferences{Page,Group}
Panels in g-c-c should be using these widgets wherever possible. These are the widgets meant to be used for boxed list panels, and libadwaita provides a single source of truth for the styling. The UI file will be further reduced once https://gitlab.gnome.org/GNOME/libadwaita/-/merge_requests/433 is merged.
Diffstat (limited to 'lib/settings.ui')
-rw-r--r--lib/settings.ui72
1 files changed, 53 insertions, 19 deletions
diff --git a/lib/settings.ui b/lib/settings.ui
index 57df5d58..a80bcfa3 100644
--- a/lib/settings.ui
+++ b/lib/settings.ui
@@ -176,30 +176,64 @@
</object>
</child>
</object>
- <object class="GtkScrolledWindow" id="scrolledwindow1">
- <property name="hscrollbar-policy">never</property>
+ <object class="AdwPreferencesPage" id="page">
<child>
- <object class="GtkViewport" id="viewport1">
+ <object class="AdwPreferencesGroup" id="explanation_group"/>
+ </child>
+ <child>
+ <object class="AdwPreferencesGroup" id="devices_group">
<child>
- <object class="AdwClamp">
- <property name="maximum_size">600</property>
- <property name="tightening_threshold">400</property>
- <property name="margin_top">32</property>
- <property name="margin_bottom">32</property>
- <property name="margin_start">12</property>
- <property name="margin_end">12</property>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
<child>
- <object class="GtkBox" id="vbox_bluetooth">
- <property name="spacing">12</property>
- <property name="orientation">vertical</property>
+ <object class="GtkBox">
<child>
- <object class="GtkLabel" id="explanation-label">
- <property name="halign">start</property>
- <property name="label">Visible as “Bastien's computer” and available for Bluetooth file transfers. Transferred files are placed in the &lt;a href="http://www.gnome.org"&gt;Downloads&lt;/a&gt; folder.</property>
- <property name="use_markup">True</property>
- <property name="wrap">True</property>
+ <object class="GtkLabel" id="device_label">
<property name="xalign">0</property>
- <property name="yalign">0</property>
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">Devices</property>
+ <style>
+ <class name="heading"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSpinner" id="device_spinner"/>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStack" id="device_stack">
+ <property name="hhomogeneous">False</property>
+ <property name="vhomogeneous">False</property>
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">filler-page</property>
+ <property name="child">
+ <object class="GtkLabel">
+ <property name="label" translatable="yes">Searching for devices…</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">devices-page</property>
+ <property name="child">
+ <object class="GtkListBox" id="device_list">
+ <property name="selection-mode">none</property>
+ <accessibility>
+ <relation name="labelled-by">device_label</relation>
+ </accessibility>
+ <style>
+ <class name="boxed-list"/>
+ </style>
+ </object>
+ </property>
</object>
</child>
</object>