[file-roller/wip/gtk4: 29/54] dialogs: fixed spacing and style for some dialogs




commit a8147abf6687019d19aea51f40b5d7437a5d881c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Oct 1 17:39:59 2022 +0200

    dialogs: fixed spacing and style for some dialogs

 data/org.gnome.FileRoller.gschema.xml |  6 +++---
 src/fr-window.c                       | 14 +++++++++-----
 src/ui/password.ui                    |  6 +-----
 src/ui/progress-dialog.ui             |  3 +--
 4 files changed, 14 insertions(+), 15 deletions(-)
---
diff --git a/data/org.gnome.FileRoller.gschema.xml b/data/org.gnome.FileRoller.gschema.xml
index 9687ee28..2ccd2cef 100644
--- a/data/org.gnome.FileRoller.gschema.xml
+++ b/data/org.gnome.FileRoller.gschema.xml
@@ -213,16 +213,16 @@
       <default>true</default>
     </key>
     <key name="width" type="i">
-      <default>300</default>
+      <default>1000</default>
     </key>
     <key name="height" type="i">
-      <default>300</default>
+      <default>800</default>
     </key>
   </schema>
 
   <schema id="org.gnome.FileRoller.Dialogs.LastOutput" path="/org/gnome/file-roller/dialogs/last-output/" 
gettext-domain="file-roller">
     <key name="width" type="i">
-      <default>500</default>
+      <default>1000</default>
     </key>
     <key name="height" type="i">
       <default>500</default>
diff --git a/src/fr-window.c b/src/fr-window.c
index 939221c3..7961299a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7410,21 +7410,25 @@ fr_window_view_last_output (FrWindow   *window,
 
        text_buffer = gtk_text_buffer_new (NULL);
        gtk_text_buffer_create_tag (text_buffer, "monospace",
-                                   "family", "monospace", NULL);
+                                   "family", "monospace",
+                                   "size-points", 12.0,
+                                   NULL);
 
        text_view = gtk_text_view_new_with_buffer (text_buffer);
        g_object_unref (text_buffer);
        gtk_text_view_set_editable (GTK_TEXT_VIEW (text_view), FALSE);
        gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (text_view), FALSE);
+       gtk_text_view_set_right_margin (GTK_TEXT_VIEW (text_view), 10);
+       gtk_text_view_set_left_margin (GTK_TEXT_VIEW (text_view), 10);
+       gtk_text_view_set_top_margin (GTK_TEXT_VIEW (text_view), 10);
+       gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW (text_view), 10);
 
        /**/
 
-       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
-       _gtk_widget_set_margin (GTK_WIDGET (vbox), 5);
-
+       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+       _gtk_widget_set_margin (GTK_WIDGET (vbox), 10);
        gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scrolled), text_view);
        _gtk_box_pack_start (GTK_BOX (vbox), scrolled, TRUE, TRUE);
-
        _gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), vbox, TRUE, TRUE);
 
        /* signals */
diff --git a/src/ui/password.ui b/src/ui/password.ui
index 5a61ed53..20842102 100644
--- a/src/ui/password.ui
+++ b/src/ui/password.ui
@@ -8,16 +8,12 @@
       <object class="GtkLabel" id="title_label">
         <property name="label">Enter a password for &quot;archive.tar.xz&quot;</property>
         <property name="halign">start</property>
-        <attributes>
-          <attribute name="weight" value="bold"></attribute>
-          <attribute name="size" value="12000"></attribute>
-        </attributes>
       </object>
     </child>
     <child>
       <object class="GtkBox" id="box2">
         <property name="orientation">vertical</property>
-        <property name="spacing">6</property>
+        <property name="spacing">15</property>
         <child>
           <object class="GtkEntry" id="password_entry">
             <property name="focusable">1</property>
diff --git a/src/ui/progress-dialog.ui b/src/ui/progress-dialog.ui
index ff03001e..5b331621 100644
--- a/src/ui/progress-dialog.ui
+++ b/src/ui/progress-dialog.ui
@@ -7,7 +7,7 @@
     <child>
       <object class="GtkBox" id="box2">
         <property name="orientation">vertical</property>
-        <property name="spacing">18</property>
+        <property name="spacing">20</property>
         <property name="hexpand">1</property>
         <child>
           <object class="GtkLabel" id="action_label">
@@ -22,7 +22,6 @@
             <property name="spacing">10</property>
             <child>
               <object class="GtkProgressBar" id="progress_progressbar">
-                <property name="vexpand">1</property>
                 <property name="width_request">350</property>
                 <property name="pulse_step">0.029999999999999999</property>
               </object>


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