[gtk+] Adwaita: stack switcher button needs-attention fix.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: stack switcher button needs-attention fix.
- Date: Tue, 22 Jul 2014 07:43:48 +0000 (UTC)
commit a67baa51ae0222296ae0046e0ee4a95663e109c9
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Tue Jul 22 09:42:22 2014 +0200
Adwaita: stack switcher button needs-attention fix.
Don't draw the dot when the stack switcher button is active.
gtk/resources/theme/Adwaita/_common.scss | 7 ++++++-
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 5 ++++-
gtk/resources/theme/Adwaita/gtk-contained.css | 5 ++++-
3 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 08a123d..89fa4ac 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -406,9 +406,14 @@ GtkLabel {
to(transparent));
background-size: 6px 6px, 6px 6px;
background-repeat: no-repeat;
- background-position: right 2px, right 3px;
+ background-position: right 3px, right 4px;
&:backdrop { background-size: 6px 6px, 0 0;}
}
+ &.needs-attention:active > GtkLabel,
+ &.needs-attention:active > GtkImage {
+ animation: none;
+ background-image: none;
+ }
}
//inline-toolbar buttons
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 23fd359..9270d36 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -508,9 +508,12 @@
background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#215d9c),
to(transparent)), -gtk-gradient(radial, center center, 0, center center, 0.5, to(white), to(transparent));
background-size: 6px 6px, 6px 6px;
background-repeat: no-repeat;
- background-position: right 2px, right 3px; }
+ background-position: right 3px, right 4px; }
.stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher >
.button.needs-attention > GtkImage:backdrop {
background-size: 6px 6px, 0 0; }
+ .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher >
.button.needs-attention:active > GtkImage {
+ animation: none;
+ background-image: none; }
.inline-toolbar .button, .inline-toolbar .button:backdrop {
border-radius: 2px;
border-width: 1px; }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 1daaf34..adf73e2 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -500,9 +500,12 @@
background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#4a90d9),
to(transparent)), -gtk-gradient(radial, center center, 0, center center, 0.5, to(white), to(transparent));
background-size: 6px 6px, 6px 6px;
background-repeat: no-repeat;
- background-position: right 2px, right 3px; }
+ background-position: right 3px, right 4px; }
.stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher >
.button.needs-attention > GtkImage:backdrop {
background-size: 6px 6px, 0 0; }
+ .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher >
.button.needs-attention:active > GtkImage {
+ animation: none;
+ background-image: none; }
.inline-toolbar .button, .inline-toolbar .button:backdrop {
border-radius: 2px;
border-width: 1px; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]