[gnome-control-center/gbsneto/minor-cleanups-pt1: 2/10] notifications: Adjust style of notifications dialog




commit 72b76709bb586e1692da06cab0707e0b88098b69
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jan 21 11:47:24 2022 -0300

    notifications: Adjust style of notifications dialog
    
    Add margins around it, make the titlebar flat.
    
    See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587

 panels/notifications/cc-app-notifications-dialog.ui | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/panels/notifications/cc-app-notifications-dialog.ui 
b/panels/notifications/cc-app-notifications-dialog.ui
index 9af4a3a63..9f6217f5b 100644
--- a/panels/notifications/cc-app-notifications-dialog.ui
+++ b/panels/notifications/cc-app-notifications-dialog.ui
@@ -1,17 +1,33 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <template class="CcAppNotificationsDialog" parent="GtkDialog">
-    <property name="width_request">360</property>
+    <property name="width_request">350</property>
+    <property name="resizable">False</property>
     <property name="modal">True</property>
+    <child type="titlebar">
+      <object class="GtkHeaderBar">
+        <property name="show-title-buttons">True</property>
+        <style>
+          <class name="flat" />
+        </style>
+      </object>
+    </child>
     <child>
       <object class="GtkBox">
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
+        <property name="margin-top">12</property>
+        <property name="margin-bottom">36</property>
+        <property name="margin-start">36</property>
+        <property name="margin-end">36</property>
         <child>
           <object class="GtkListBox" id="main_listbox">
             <property name="selection_mode">none</property>
             <property name="show-separators">True</property>
             <property name="activate_on_single_click">False</property>
+            <style>
+              <class name="boxed-list" />
+            </style>
             <child>
               <object class="GtkListBoxRow">
                 <property name="width_request">100</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]