[gitg] Set a thin border on the sidepane
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Set a thin border on the sidepane
- Date: Sun, 17 Mar 2013 09:42:24 +0000 (UTC)
commit d438550cef7d647838c86f17e65070a02993f257
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Mar 16 19:51:23 2013 +0100
Set a thin border on the sidepane
gitg/resources/ui/gitg-window.ui | 3 +++
gitg/resources/ui/style.css | 15 +++++++++++++++
plugins/diff/gitg-diff.vala | 1 -
3 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/gitg/resources/ui/gitg-window.ui b/gitg/resources/ui/gitg-window.ui
index b9568ab..0e24227 100644
--- a/gitg/resources/ui/gitg-window.ui
+++ b/gitg/resources/ui/gitg-window.ui
@@ -171,6 +171,9 @@
<property name="vexpand">True</property>
<property name="position">200</property>
<property name="position_set">True</property>
+ <style>
+ <class name="sidebar-paned"/>
+ </style>
<child>
<object class="GtkEventBox" id="navigation_background">
<property name="visible">True</property>
diff --git a/gitg/resources/ui/style.css b/gitg/resources/ui/style.css
index dcb8535..533240b 100644
--- a/gitg/resources/ui/style.css
+++ b/gitg/resources/ui/style.css
@@ -62,6 +62,21 @@ GtkLabel.grid_title {
font-weight: bold;
}
+.sidebar-paned.pane-separator,
+.sidebar-paned.pane-separator:hover {
+ border-width: 1px 1px 0 0;
+ border-style: solid;
+ border-color: @borders;
+ background-color: @sidebar_bg;
+ color: shade (@theme_bg_color, 0.9);
+}
+
+.sidebar-paned.pane-separator:backdrop,
+.sidebar-paned.pane-separator:hover:backdrop {
+ border-color: @unfocused_borders;
+ background-color: @sidebar_bg_unfocused;
+}
+
.branch, .remote, .tag, .stash {
border-radius: 6px;
border: 1px solid @theme_bg_color;
diff --git a/plugins/diff/gitg-diff.vala b/plugins/diff/gitg-diff.vala
index 8ed0ef5..88d5614 100644
--- a/plugins/diff/gitg-diff.vala
+++ b/plugins/diff/gitg-diff.vala
@@ -33,7 +33,6 @@ namespace GitgDiff
construct
{
d_sw = new Gtk.ScrolledWindow(null, null);
- d_sw.shadow_type = Gtk.ShadowType.IN;
d_sw.show();
d_diff = new GitgGtk.DiffView(null);
d_diff.show();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]