[gnome-themes-standard] tooltips: enable transparency and rounded corners
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] tooltips: enable transparency and rounded corners
- Date: Wed, 19 Oct 2011 19:23:02 +0000 (UTC)
commit 2e136210f297980b6598572ffea8ebdd55223768
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Oct 12 14:31:15 2011 -0400
tooltips: enable transparency and rounded corners
Now that GTK+ supports it, we can make the tooltip rounded and
transparent as it is in the mockups.
themes/Adwaita/gtk-3.0/gtk-widgets.css | 8 ++++++--
themes/Adwaita/gtk-3.0/gtk.css | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index a56c058..dc768df 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -82,12 +82,16 @@ GtkWindow {
.tooltip {
padding: 4 4;
border-style: none;
- background-color: @theme_tooltip_bg_color;
+ border-radius: 5;
+
+ background-color: alpha(@theme_tooltip_bg_color, 0.90);
color: @theme_tooltip_fg_color;
+
+ text-shadow: 1 1 black;
}
.tooltip * {
- background-color: @theme_tooltip_bg_color;
+ background-color: alpha(@theme_tooltip_bg_color, 0.90);
}
.grip {
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 1bdd19e..6c18934 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -1,7 +1,7 @@
/* Default color scheme */
@define-color base_color #ffffff;
@define-color bg_color #ededed;
- define-color tooltip_bg_color #343434;
+ define-color tooltip_bg_color #212526;
@define-color selected_bg_color #4a90d9;
@define-color text_color #2e3436;
@define-color fg_color #2e3436;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]