Adwaita: stack switcher button needs-attention fix.

Don't draw the dot when the stack switcher button is active.
This commit is contained in:
Lapo Calamandrei 2014-07-22 09:42:22 +02:00
parent 11dd823510
commit a67baa51ae
3 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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; }

View File

@ -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; }