[nautilus] file-conflict-dialog: Improve heading style



commit 47475b174dd0604448bb09e9e17c9259c083ce59
Author: Joshua Lee <lee son wai gmail com>
Date:   Thu Nov 11 05:19:11 2021 +0000

    file-conflict-dialog: Improve heading style
    
    Use GTK's title-2 style class for the primary header and centre the secondary
    header. Also remove the unneeded custom CSS.

 src/resources/css/nautilus.css                    |  4 ----
 src/resources/ui/nautilus-file-conflict-dialog.ui | 11 +++++------
 2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/src/resources/css/nautilus.css b/src/resources/css/nautilus.css
index 927e0b641..ee25a36a8 100644
--- a/src/resources/css/nautilus.css
+++ b/src/resources/css/nautilus.css
@@ -12,7 +12,3 @@ row.encrypted_zip label.title {
     background-size: 16px 16px;
     padding-right: 24px;
 }
-
-.conflict-dialog-primary-label {
-    font-size: 1.2em;
-}
diff --git a/src/resources/ui/nautilus-file-conflict-dialog.ui 
b/src/resources/ui/nautilus-file-conflict-dialog.ui
index fed180fab..23475deb7 100644
--- a/src/resources/ui/nautilus-file-conflict-dialog.ui
+++ b/src/resources/ui/nautilus-file-conflict-dialog.ui
@@ -20,25 +20,24 @@
             <child>
               <object class="GtkLabel" id="primary_label">
                 <property name="visible">True</property>
+                <property name="justify">center</property>
+                <property name="halign">center</property>
                 <property name="max-width-chars">50</property>
                 <property name="wrap">True</property>
                 <property name="wrap-mode">word-char</property>
-                <property name="xalign">0</property>
-                <attributes>
-                  <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
-                </attributes>
                 <style>
-                  <class name="conflict-dialog-primary-label"/>
+                  <class name="title-2"/>
                 </style>
               </object>
             </child>
             <child>
               <object class="GtkLabel" id="secondary_label">
                 <property name="visible">True</property>
+                <property name="justify">center</property>
+                <property name="halign">center</property>
                 <property name="max-width-chars">50</property>
                 <property name="wrap">True</property>
                 <property name="wrap-mode">word-char</property>
-                <property name="xalign">0</property>
               </object>
             </child>
             <child>


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