[gnome-themes-standard] Widget theme: toned down text entries background gradient.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Widget theme: toned down text entries background gradient.
- Date: Wed, 28 Dec 2011 13:18:56 +0000 (UTC)
commit 166e4b0cfe8bd6922b6ba4bf1dfa6d320469a04b
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Wed Dec 28 14:18:43 2011 +0100
Widget theme: toned down text entries background gradient.
themes/Adwaita/gtk-3.0/gnome-applications.css | 7 +++++++
themes/Adwaita/gtk-3.0/gtk-dark.css | 9 +++++----
themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css | 12 ++++++++++--
themes/Adwaita/gtk-3.0/gtk-widgets.css | 2 ++
themes/Adwaita/gtk-3.0/gtk.css | 8 ++++----
5 files changed, 28 insertions(+), 10 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gnome-applications.css b/themes/Adwaita/gtk-3.0/gnome-applications.css
index b184515..390acb6 100644
--- a/themes/Adwaita/gtk-3.0/gnome-applications.css
+++ b/themes/Adwaita/gtk-3.0/gnome-applications.css
@@ -89,6 +89,8 @@ NautilusQueryEditor.info:first-child {
-GtkEntry-inner-border: 9;
}*/
+
+
NautilusLocationEntry.entry {
padding-left: 4;
padding-right: 4;
@@ -115,6 +117,11 @@ NautilusSearchBar .entry:focus {
color: @theme_base_color;
}
+/*NautilusPlacesSidebar .cell:selected { FUNGE, ci vuole una border image qui
+ border-radius: 0 100 100 0;
+ box-shadow: 0 1 inset alpha(black, 0.2), 0 -1 inset alpha(white, 0.5);
+}*/
+
/*#nautilus-search-button *:active,
#nautilus-search-button *:active:prelight {
color: darker (@nautilus_cluebar_color);
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index 6f5c211..3159d16 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -87,10 +87,11 @@
@define-color progressbar_border @switch_slider_active_border;
@define-color entry_text_color #ffffff;
- define-color entry_background_a #2d2d2d;
- define-color entry_background_b #333333;
- define-color entry_background_c #343434;
- define-color entry_background_d #373737;
+ define-color entry_background_a shade(@theme_base_color, 0.85);
+ define-color entry_background_b @theme_base_color;
+
+ define-color entry_inset alpha(black, 0.15);
+
@define-color frame_color #707070;
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css b/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
index 5a1e700..4233b1d 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
@@ -150,12 +150,18 @@ GtkComboBox.combobox-entry .button:hover:focus,
.primary-toolbar GtkComboBox.combobox-entry .button:hover,
.primary-toolbar GtkComboBox.combobox-entry .button:focus
.primary-toolbar GtkComboBox.combobox-entry .button:hover:focus {
- background-image: -gtk-gradient(linear,
+/* background-image: -gtk-gradient(linear,
left top, left bottom,
from(@entry_background_a),
color-stop(0.15, @entry_background_b),
color-stop(0.85, @entry_background_c),
- to(@entry_background_d));
+ to(@entry_background_d)); */
+ background-image: -gtk-gradient(linear,
+ left top, left bottom,
+ from(@entry_background_a),
+ /* color-stop(0.7, mix(@entry_background_a, @entry_background_b, 0.4)), */
+ to(@entry_background_b));
+ box-shadow: 0 1 inset @entry_inset, 0 2 inset alpha(@entry_inset, 0.4);
}
/* Entry pushed button background */
@@ -186,6 +192,7 @@ column-header .button:active:focus {
GtkComboBox.combobox-entry .button:insensitive {
background-color: @insensitive_bg_color;
background-image: none;
+ box-shadow: none;
}
/* Unfocused windows entry background */
@@ -197,6 +204,7 @@ column-header.button:insensitive:window-unfocused,
column-header .button:insensitive:window-unfocused {
background-image: none;
background-color: @theme_unfocused_base_color;
+ box-shadow: none;
}
/* Unfocused windows insensitive entry background */
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index e184f17..27265ee 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -1886,6 +1886,8 @@ GtkTreeView.view:window-unfocused {
column-header.button,
column-header .button {
color: @internal_element_color;
+ /* I'd like to have shadows inside any white box, not possible yet */
+ /* box-shadow: 0 1 inset @entry_inset, 0 2 inset alpha(@entry_inset, 0.4); */
}
column-header.button,
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 4b20ffb..3b42d93 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -129,10 +129,10 @@
@define-color entry_text_color @theme_text_color;
- define-color entry_background_a #e1e1e1;
- define-color entry_background_b #f8f8f8;
- define-color entry_background_c #fafafa;
- define-color entry_background_d @theme_base_color;
+ define-color entry_background_a shade(@theme_base_color, 0.94);
+ define-color entry_background_b @theme_base_color;
+
+ define-color entry_inset alpha(black, 0.1);
@define-color internal_element_color #888a85;
@define-color internal_element_prelight @theme_text_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]