[baobab/reroot-view: 8/14] Start styling the pathbar



commit 0b5f2efccfb8b42921a89a376936edadba415f42
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Sat Jun 20 15:14:04 2020 +0200

    Start styling the pathbar

 data/baobab.css               | 13 +++++++++++++
 data/ui/baobab-main-window.ui |  4 +---
 src/baobab-pathbar.vala       |  4 ++++
 3 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/data/baobab.css b/data/baobab.css
index 3362d7a..fdfe055 100644
--- a/data/baobab.css
+++ b/data/baobab.css
@@ -58,6 +58,19 @@ window.background stack > grid > scrolledwindow.frame {
     border-width: 0 1px 0 0;
 }
 
+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;
+}
+
 folder-display {
     background: white;
     border-color: @borders;
diff --git a/data/ui/baobab-main-window.ui b/data/ui/baobab-main-window.ui
index b87ef42..c26746c 100644
--- a/data/ui/baobab-main-window.ui
+++ b/data/ui/baobab-main-window.ui
@@ -452,8 +452,6 @@
   </template>
   <object class="BaobabPathbar" id="pathbar">
     <property name="visible">True</property>
-    <style>
-      <class name="linked"/>
-    </style>
+    <property name="width_request">700</property>
   </object>
 </interface>
diff --git a/src/baobab-pathbar.vala b/src/baobab-pathbar.vala
index 8d36a83..fea4264 100644
--- a/src/baobab-pathbar.vala
+++ b/src/baobab-pathbar.vala
@@ -31,6 +31,10 @@ namespace Baobab {
     }
 
     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]