[gnome-clocks] Set the border on the scrolled window
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Set the border on the scrolled window
- Date: Tue, 25 Sep 2012 20:27:15 +0000 (UTC)
commit 0f663500fd80c1c5ac9ff35b266895deacdae6d8
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Sep 25 22:25:12 2012 +0200
Set the border on the scrolled window
This way it also spans the upper border of the scrollbar
data/gtk-style.css | 12 +++++++++---
gnomeclocks/stopwatch.py | 2 ++
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 98f72ec..7198a48 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -5,6 +5,7 @@
.clocks-toolbar.toolbar {
border-style: solid;
+ border-color: @borders;
border-width: 0 0 1px 0;
border-radius: 0;
}
@@ -73,6 +74,13 @@
background-color: @theme_bg_color;
}
+.frame.clocks-laps-scroll {
+ border-style: solid;
+ border-color: @borders;
+ border-width: 1px 0 0 0;
+ border-radius: 0;
+}
+
.clocks-laps column-header.button,
.clocks-laps column-header .button,
.clocks-laps column-header.button:insensitive,
@@ -83,8 +91,7 @@
.clocks-laps column-header .button:last-child {
border-image: none;
border-style: solid;
- border-color: @borders;
- border-width: 1px 0 0 0;
+ border-width: 0;
border-radius: 0;
box-shadow: none;
background-color:shade(@theme_bg_color, 0.975);
@@ -94,4 +101,3 @@
.clocks-laps column-header .button:backdrop {
background-color: @theme_bg_color;
}
-
diff --git a/gnomeclocks/stopwatch.py b/gnomeclocks/stopwatch.py
index 76cbe91..486868c 100644
--- a/gnomeclocks/stopwatch.py
+++ b/gnomeclocks/stopwatch.py
@@ -96,6 +96,8 @@ class Stopwatch(Clock):
self.laps_view.append_column(split_column)
self.laps_view.append_column(tot_column)
scroll = Gtk.ScrolledWindow()
+ scroll.get_style_context().add_class("clocks-laps-scroll")
+ scroll.set_shadow_type(Gtk.ShadowType.IN)
scroll.set_vexpand(True);
scroll.add(self.laps_view)
vbox.pack_start(scroll, True, True, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]