[gtk+] Adwaita: position needs-attention dot in rtl
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: position needs-attention dot in rtl
- Date: Tue, 22 Jul 2014 18:22:19 +0000 (UTC)
commit 8a01e90608f1985e241688bf92702e67293bbb12
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Tue Jul 22 20:21:30 2014 +0200
Adwaita: position needs-attention dot in rtl
gtk/resources/theme/Adwaita/_common.scss | 6 ++++--
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 2 ++
gtk/resources/theme/Adwaita/gtk-contained.css | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 0ca81f4..975bba1 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -253,7 +253,6 @@ $_dot_color: if($variant=='light', $selected_bg_color,
lighten($selected_bg_color,15%));
@keyframes needs_attention {
from {
- //background-size: 0 0, 0 0;
background-image: -gtk-gradient(radial,
center center, 0,
center center, 0.01,
@@ -261,7 +260,6 @@ $_dot_color: if($variant=='light', $selected_bg_color,
to(transparent));
}
to {
- //background-size: 6px 6px, 6px 6px;
background-image: -gtk-gradient(radial,
center center, 0,
center center, 0.5,
@@ -415,6 +413,10 @@ $_dot_color: if($variant=='light', $selected_bg_color,
@if $variant == 'light' { background-position: right 3px, right 4px; }
@else { background-position: right 3px, right 2px; }
&:backdrop { background-size: 6px 6px, 0 0;}
+ &:dir(rtl) {
+ @if $variant == 'light' { background-position: left 3px, left 4px; }
+ @else { background-position: left 3px, left 2px; }
+ }
}
&.needs-attention:active > GtkLabel,
&.needs-attention:active > GtkImage {
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index b675019..a3d891d 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -511,6 +511,8 @@
background-position: right 3px, right 2px; }
.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 > GtkLabel:dir(rtl), .stack-switcher >
.button.needs-attention > GtkImage:dir(rtl) {
+ background-position: left 3px, left 2px; }
.stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher >
.button.needs-attention:active > GtkImage {
animation: none;
background-image: none; }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index bdcbba8..96e8a71 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -503,6 +503,8 @@
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 > GtkLabel:dir(rtl), .stack-switcher >
.button.needs-attention > GtkImage:dir(rtl) {
+ background-position: left 3px, left 4px; }
.stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher >
.button.needs-attention:active > GtkImage {
animation: none;
background-image: none; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]