[gnome-themes-standard] content-view: generic styling for content-view widgets
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] content-view: generic styling for content-view widgets
- Date: Thu, 16 Aug 2012 21:01:23 +0000 (UTC)
commit bd978a9cd34c7fbc67ac0749092c5efb16e1f94b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Aug 16 22:51:07 2012 +0200
content-view: generic styling for content-view widgets
Taken from Documents' main views, but with dark variant support.
Noise texture is still missing because it doesn't seem to work properly
in icon view; more investigation needed.
themes/Adwaita/gtk-3.0/gnome-applications.css | 18 ------------------
themes/Adwaita/gtk-3.0/gtk-main-dark.css | 2 ++
themes/Adwaita/gtk-3.0/gtk-main.css | 2 ++
themes/Adwaita/gtk-3.0/gtk-widgets.css | 24 ++++++++++++++++++++++++
4 files changed, 28 insertions(+), 18 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gnome-applications.css b/themes/Adwaita/gtk-3.0/gnome-applications.css
index fbe8d8c..3f3c918 100644
--- a/themes/Adwaita/gtk-3.0/gnome-applications.css
+++ b/themes/Adwaita/gtk-3.0/gnome-applications.css
@@ -240,24 +240,6 @@ GeditFloatingSlider .not-found {
border-radius: 0;
}
-.documents-main-view.view {
- background-color: #f1f2f1;
-}
-
-GtkIconView.documents-main-view {
- -GdMainIconView-icon-size: 40;
-}
-
-GtkIconView.documents-main-view.check {
- background-image: url("assets/grid-selection-unchecked.svg");
- background-color: transparent;
-}
-
-GtkIconView.documents-main-view.check:active {
- background-image: url("assets/grid-selection-checked.svg");
- background-color: transparent;
-}
-
.documents-icon-bg {
background-color: @documents_emblem_bg;
border-radius: 4px;
diff --git a/themes/Adwaita/gtk-3.0/gtk-main-dark.css b/themes/Adwaita/gtk-3.0/gtk-main-dark.css
index 2d55a50..b9b0f5f 100644
--- a/themes/Adwaita/gtk-3.0/gtk-main-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-main-dark.css
@@ -111,6 +111,8 @@
@define-color selection_toolbar_fg shade(@theme_text_color, 0.80);
@define-color selection_toolbar_border @internal_element_color;
+ define-color content_view_bg #242424;
+
@define-color treeview_focus_border shade (@theme_selected_bg_color, 1.20);
@define-color view_separators shade (@internal_element_color, 0.90);
diff --git a/themes/Adwaita/gtk-3.0/gtk-main.css b/themes/Adwaita/gtk-3.0/gtk-main.css
index 5e65def..b0fd224 100644
--- a/themes/Adwaita/gtk-3.0/gtk-main.css
+++ b/themes/Adwaita/gtk-3.0/gtk-main.css
@@ -111,6 +111,8 @@
@define-color selection_toolbar_fg @internal_element_color;
@define-color selection_toolbar_border @borders;
+ define-color content_view_bg #f1f2f1;
+
@define-color treeview_focus_border #2a79cb;
@define-color view_separators shade(@borders, 1.30);
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index a82d020..363620c 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -2556,6 +2556,9 @@ GtkSwitch.slider:insensitive:backdrop {
border-color: @unfocused_insensitive_borders;
}
+/***********************
+ * Tree and Icon views *
+ ***********************/
GtkTreeView {
-GtkTreeView-vertical-separator: 0;
-GtkTreeView-expander-size: 17;
@@ -2756,6 +2759,27 @@ row:selected {
border-color: @internal_element_color;
}
+/****************
+ * Content view *
+ ****************/
+.content-view.view {
+ background-color: @content_view_bg;
+}
+
+GdMainIconView.content-view {
+ -GdMainIconView-icon-size: 40;
+}
+
+GtkIconView.content-view.check {
+ background-image: url("assets/grid-selection-unchecked.svg");
+ background-color: transparent;
+}
+
+GtkIconView.content-view.check:active {
+ background-image: url("assets/grid-selection-checked.svg");
+ background-color: transparent;
+}
+
/* Calendars */
GtkCalendar {
padding: 2px;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]