[nautilus/wip/cdavis/adaptive-flap] window: Add "separator" child type for HdyFlap



commit 476079107edea198a7518994366319433fa8e8f8
Author: Christopher Davis <brainblasted disroot org>
Date:   Wed Dec 9 08:41:18 2020 -0800

    window: Add "separator" child type for HdyFlap
    
    Adds a separator child type and removes the border
    from the places sidebar. This prevents a double-border with
    HdyFlap.

 src/resources/css/nautilus.css      | 5 +++++
 src/resources/ui/nautilus-window.ui | 9 +++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/src/resources/css/nautilus.css b/src/resources/css/nautilus.css
index a85df669a..8d22ee282 100644
--- a/src/resources/css/nautilus.css
+++ b/src/resources/css/nautilus.css
@@ -8,3 +8,8 @@
     padding-left: 5px;
     padding-right: 5px;
 }
+
+placessidebar {
+  border: none;
+  min-width: 270px;
+}
diff --git a/src/resources/ui/nautilus-window.ui b/src/resources/ui/nautilus-window.ui
index fd31e2144..123b55af7 100644
--- a/src/resources/ui/nautilus-window.ui
+++ b/src/resources/ui/nautilus-window.ui
@@ -42,6 +42,15 @@
                 </child>
               </object>
             </child>
+            <child type="separator">
+              <object class="GtkSeparator">
+                <property name="visible">True</property>
+                <property name="orientation">vertical</property>
+                <style>
+                  <class name="sidebar"/>
+                </style>
+              </object>
+            </child>
             <child>
               <object class="GtkOverlay" id="main_view">
                 <property name="visible">True</property>


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