[baobab/reroot-view: 48/48] Start styling the pathbar
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/reroot-view: 48/48] Start styling the pathbar
- Date: Sat, 20 Jun 2020 16:13:18 +0000 (UTC)
commit 9b8ec9385aa8e6da1dbcc3c60e5343447f395fd2
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]