[baobab] Pathbar style improvements



commit 34711fb3782c45f5b0890d492ca4d63357f65a0d
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Sat Jul 4 10:35:23 2020 +0200

    Pathbar style improvements

 data/baobab.css               | 22 +++++++++++++---------
 data/ui/baobab-main-window.ui |  4 ++++
 src/baobab-pathbar.vala       |  5 -----
 3 files changed, 17 insertions(+), 14 deletions(-)
---
diff --git a/data/baobab.css b/data/baobab.css
index d229b4b..4b100a9 100644
--- a/data/baobab.css
+++ b/data/baobab.css
@@ -68,17 +68,21 @@ window.background stack treeview:hover:not(:selected) {
     background: @theme_bg_color;
 }
 
-pathbar button {
-       transition: 0;
-       margin: 0;
-       border-width: 0 1px 0 0;
-       border-radius: 0px;
+.pathbar {
+    border: solid 1px @borders;
+    border-radius: 3px;
+    background: @theme_bg_color;
+}
+
+.pathbar button {
+    margin: 0;
+    border-width: 0 1px 0 0;
+    border-radius: 0px;
 }
 
-pathbar {
-       border: solid 1px @borders;
-       border-radius: 3px;
-       background: @theme_bg_color;
+.pathbar button:first-child {
+    border-top-left-radius: 3px;
+    border-bottom-left-radius: 3px;
 }
 
 window infobar.warning,
diff --git a/data/ui/baobab-main-window.ui b/data/ui/baobab-main-window.ui
index 09727f4..c84c4a0 100644
--- a/data/ui/baobab-main-window.ui
+++ b/data/ui/baobab-main-window.ui
@@ -438,6 +438,10 @@
   </template>
   <object class="BaobabPathbar" id="pathbar">
     <property name="visible">True</property>
+    <property name="valign">center</property>
     <property name="width_request">700</property>
+    <style>
+      <class name="pathbar"/>
+    </style>
   </object>
 </interface>
diff --git a/src/baobab-pathbar.vala b/src/baobab-pathbar.vala
index 736348b..0ce910d 100644
--- a/src/baobab-pathbar.vala
+++ b/src/baobab-pathbar.vala
@@ -35,14 +35,9 @@ namespace Baobab {
                 icon.show ();
             }
         }
-
     }
 
     public class Pathbar : Gtk.Box {
-        static construct {
-            set_css_name ("pathbar");
-        }
-
         public signal void item_activated (Gtk.TreePath path);
 
         Location location_;


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