[gnome-themes-standard] adwaita: use border-image-source for the tab gradient
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] adwaita: use border-image-source for the tab gradient
- Date: Wed, 3 Oct 2012 00:39:00 +0000 (UTC)
commit 34e1d166fadd2f14aa0f711d569f68b17d2f6f48
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Oct 2 20:30:20 2012 -0400
adwaita: use border-image-source for the tab gradient
Following the same logic of the previous commit.
This also entirely removes custom style properties from the theming
engine.
src/adwaita_engine.c | 7 +------
themes/Adwaita/gtk-3.0/gtk-widgets.css | 17 ++++++++---------
2 files changed, 9 insertions(+), 15 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index 39534ae..38f3124 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -231,7 +231,7 @@ render_notebook_extension (GtkThemingEngine *engine,
gtk_theming_engine_get_background_color (engine, state, &background_color);
gtk_theming_engine_get_border_color (engine, state, &border_color);
gtk_theming_engine_get (engine, state,
- "-adwaita-border-gradient", &pattern,
+ "border-image-source", &pattern,
NULL);
is_active = (state & GTK_STATE_FLAG_ACTIVE);
@@ -409,11 +409,6 @@ adwaita_engine_class_init (AdwaitaEngineClass *klass)
engine_class->render_focus = adwaita_engine_render_focus;
engine_class->render_extension = adwaita_engine_render_extension;
engine_class->render_expander = adwaita_engine_render_expander;
- gtk_theming_engine_register_property (ADWAITA_NAMESPACE, NULL,
- g_param_spec_boxed ("border-gradient",
- "Border gradient",
- "Border gradient",
- CAIRO_GOBJECT_TYPE_PATTERN, 0));
}
static void
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 974401a..d6c3779 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -1646,10 +1646,10 @@ GtkLinkButton.button *:active {
}
.notebook tab:active {
- -adwaita-border-gradient: -gtk-gradient (linear,
- left top, left bottom,
- from (@notebook_active_tab_border),
- to (@borders));
+ border-image-source: -gtk-gradient (linear,
+ left top, left bottom,
+ from (@notebook_active_tab_border),
+ to (@borders));
background-image: linear-gradient(to bottom,
@notebook_selected_tab_color,
@@ -1670,11 +1670,10 @@ GtkLinkButton.button *:active {
background-color: @theme_unfocused_base_color;
border-color: @unfocused_borders;
/* FIXME - should be possible to set it to none and use border color */
- -adwaita-border-gradient: -gtk-gradient (linear,
- left top, left bottom,
- from (@unfocused_borders),
- to (@unfocused_borders));
- -adwaita-selected-tab-color: @unfocused_borders;
+ border-image-source: -gtk-gradient (linear,
+ left top, left bottom,
+ from (@unfocused_borders),
+ to (@unfocused_borders));
}
.notebook tab.top {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]