[gnome-control-center] camera: Use AdwPreferences{Page,Group}
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] camera: Use AdwPreferences{Page,Group}
- Date: Sun, 16 Jan 2022 12:22:37 +0000 (UTC)
commit cd8c1db3aac3ae3370687100fa0376dafab24feb
Author: Christopher Davis <christopherdavis gnome org>
Date: Fri Jan 14 19:53:18 2022 -0800
camera: Use AdwPreferences{Page,Group}
panels/camera/cc-camera-panel.ui | 64 +++++++++++-----------------------------
1 file changed, 18 insertions(+), 46 deletions(-)
---
diff --git a/panels/camera/cc-camera-panel.ui b/panels/camera/cc-camera-panel.ui
index 51f3c70f7..c46bebb73 100644
--- a/panels/camera/cc-camera-panel.ui
+++ b/panels/camera/cc-camera-panel.ui
@@ -25,63 +25,35 @@
<object class="GtkStackPage">
<property name="name">content</property>
<property name="child">
- <object class="GtkScrolledWindow">
- <property name="hscrollbar-policy">never</property>
+ <object class="AdwPreferencesPage">
<child>
- <object class="AdwClamp">
- <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="AdwPreferencesGroup">
+ <property name="description" translatable="yes">Use of the camera allows applications to
capture photos and video. Disabling the camera may cause some applications to not function properly.
+Allow the applications below to use your camera.</property>
<child>
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <property name="hexpand">1</property>
- <child>
- <object class="GtkLabel">
- <property name="margin-bottom">12</property>
- <property name="label" translatable="yes">Use of the camera allows applications
to capture photos and video. Disabling the camera may cause some applications to not function
properly.</property>
- <property name="wrap">1</property>
- <property name="max-width-chars">50</property>
- <property name="xalign">0</property>
- </object>
- </child>
- <child>
+ <object class="GtkListBox" id="camera_apps_list_box">
+ <property name="selection-mode">none</property>
+ <style>
+ <class name="boxed-list"/>
+ </style>
+
+ <child type="placeholder">
<object class="GtkLabel">
- <property name="margin-bottom">12</property>
- <property name="label" translatable="yes">Allow the applications below to use
your camera.</property>
- <property name="wrap">1</property>
+ <property name="margin-start">18</property>
+ <property name="margin-end">18</property>
+ <property name="margin-top">18</property>
+ <property name="margin-bottom">18</property>
+ <property name="label" translatable="yes">No Applications Have Asked for Camera
Access</property>
+ <property name="wrap">true</property>
<property name="max-width-chars">50</property>
- <property name="xalign">0</property>
- </object>
- </child>
- <child>
- <object class="GtkListBox" id="camera_apps_list_box">
- <property name="selection-mode">none</property>
<style>
- <class name="boxed-list"/>
+ <class name="dim-label" />
</style>
-
- <child type="placeholder">
- <object class="GtkLabel">
- <property name="margin-start">18</property>
- <property name="margin-end">18</property>
- <property name="margin-top">18</property>
- <property name="margin-bottom">18</property>
- <property name="label" translatable="yes">No Applications Have Asked for
Camera Access</property>
- <property name="wrap">true</property>
- <property name="max-width-chars">50</property>
- <style>
- <class name="dim-label" />
- </style>
- </object>
- </child>
</object>
</child>
</object>
</child>
-
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]