[nautilus/wip/antoniof/experimental-gtk4-build: 5/7] toolbar: visual refinements




commit fdcc16e04b2e539ab827758b4db48630a58a4d8d
Author: António Fernandes <antoniof gnome org>
Date:   Fri Dec 24 15:19:31 2021 +0000

    toolbar: visual refinements

 src/resources/ui/nautilus-toolbar.ui | 97 ++++++++++++++++++------------------
 1 file changed, 49 insertions(+), 48 deletions(-)
---
diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui
index acdc2b98d..9ff6c9aef 100644
--- a/src/resources/ui/nautilus-toolbar.ui
+++ b/src/resources/ui/nautilus-toolbar.ui
@@ -115,7 +115,6 @@
         <property name="focusable">False</property>
         <child type="title">
           <object class="GtkBox" id="header_toolbar">
-            <property name="width_request">270</property>
             <property name="spacing">6</property>
             <child>
               <object class="GtkStack" id="toolbar_switcher">
@@ -219,67 +218,69 @@
           </object>
         </child>
         <child type="end">
-          <object class="GtkBox">
-            <property name="margin_start">72</property>
+          <object class="GtkMenuButton" id="app_button">
+            <property name="focusable">True</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="menu-model">app_menu</property>
             <child>
-              <object class="GtkRevealer" id="operations_revealer">
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <property name="transition_type">slide-right</property>
-                <property name="child">
-                  <object class="GtkMenuButton" id="operations_button">
-                    <property name="focusable">True</property>
-                    <property name="tooltip_text" translatable="yes">Show operations</property>
-                    <property name="margin_end">6</property>
-                    <property name="popover">operations_popover</property>
-                    <child>
-                      <object class="GtkDrawingArea" id="operations_icon">
-                        <property name="width_request">16</property>
-                        <property name="height_request">16</property>
-                        <property name="halign">center</property>
-                        <property name="valign">center</property>
-                      </object>
-                    </child>
-                    <style>
-                      <class name="button"/>
-                    </style>
-                  </object>
-                </property>
+              <object class="GtkImage">
+                <property name="icon_name">open-menu-symbolic</property>
+                <property name="icon_size">1</property>
               </object>
             </child>
+            <style>
+              <class name="image-button"/>
+            </style>
+          </object>
+        </child>
+        <child type="end">
+          <object class="AdwSplitButton" id="view_split_button">
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="margin_end">6</property>
+            <property name="focusable">True</property>
+            <property name="tooltip_text" translatable="yes">Toggle view</property>
+            <property name="action_name">slot.files-view-mode-toggle</property>
+            <property name="menu-model">view_menu</property>
             <child>
-              <object class="AdwSplitButton" id="view_split_button">
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <property name="margin_end">6</property>
-                <property name="focusable">True</property>
-                <property name="tooltip_text" translatable="yes">Toggle view</property>
-                <property name="action_name">slot.files-view-mode-toggle</property>
-                <property name="menu-model">view_menu</property>
-                <child>
-                  <object class="GtkImage" id="view_toggle_icon">
-                    <property name="icon_size">1</property>
-                  </object>
-                </child>
+              <object class="GtkImage" id="view_toggle_icon">
+                <property name="icon_size">1</property>
               </object>
             </child>
-            <child>
-              <object class="GtkMenuButton" id="app_button">
+          </object>
+        </child>
+        <child type="end">
+          <object class="GtkRevealer" id="operations_revealer">
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="transition_type">slide-right</property>
+            <property name="child">
+              <object class="GtkMenuButton" id="operations_button">
                 <property name="focusable">True</property>
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <property name="menu-model">app_menu</property>
+                <property name="tooltip_text" translatable="yes">Show operations</property>
+                <property name="margin_end">6</property>
+                <property name="popover">operations_popover</property>
                 <child>
-                  <object class="GtkImage">
-                    <property name="icon_name">open-menu-symbolic</property>
-                    <property name="icon_size">1</property>
+                  <object class="GtkDrawingArea" id="operations_icon">
+                    <property name="width_request">16</property>
+                    <property name="height_request">16</property>
+                    <property name="halign">center</property>
+                    <property name="valign">center</property>
                   </object>
                 </child>
                 <style>
                   <class name="image-button"/>
                 </style>
               </object>
-            </child>
+            </property>
+          </object>
+        </child>
+        <child type="end">
+          <object class="GtkSeparator">
+            <style>
+              <class name="spacer"/>
+            </style>
           </object>
         </child>
       </object>


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