[gnome-documents] view: set a different background color for the main view
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] view: set a different background color for the main view
- Date: Mon, 21 Nov 2011 15:51:00 +0000 (UTC)
commit 1b15835fc7f779a4ba2db2313cba5ffd24bcfd32
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Nov 18 18:03:46 2011 -0500
view: set a different background color for the main view
data/gtk-style.css | 4 ++++
src/view.js | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index f8ae4b4..bfa9e23 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -4,6 +4,10 @@
border-width: 0 1 1 1;
}
+.documents-main-view.view {
+ background-color: #f1f2f1;
+}
+
.documents-selection-mode.toolbar {
background-image: -gtk-gradient(linear, left top, left bottom,
from(#8e9c80),
diff --git a/src/view.js b/src/view.js
index ea6ab1c..c00b57c 100644
--- a/src/view.js
+++ b/src/view.js
@@ -112,6 +112,7 @@ View.prototype = {
// create renderers
this.createRenderers();
+ this.widget.get_style_context().add_class('documents-main-view');
// setup selections view => controller
this.connectToSelectionChanged(Lang.bind(this, this._onSelectionChanged));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]