diff --git a/data/Makefile.am b/data/Makefile.am index b0477194c..819b15c34 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -24,7 +24,8 @@ dist_theme_DATA = \ theme/calendar-today.svg \ theme/close-window.svg \ theme/close.svg \ - theme/corner-ripple.png \ + theme/corner-ripple-ltr.png \ + theme/corner-ripple-rtl.png \ theme/dash-placeholder.svg \ theme/filter-selected-ltr.svg \ theme/filter-selected-rtl.svg \ diff --git a/data/theme/corner-ripple.png b/data/theme/corner-ripple-ltr.png similarity index 100% rename from data/theme/corner-ripple.png rename to data/theme/corner-ripple-ltr.png diff --git a/data/theme/corner-ripple-rtl.png b/data/theme/corner-ripple-rtl.png new file mode 100644 index 000000000..26cf965f6 Binary files /dev/null and b/data/theme/corner-ripple-rtl.png differ diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index e26c16249..caaa5c425 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1280,7 +1280,11 @@ StTooltip StLabel { .ripple-box { width: 52px; height: 52px; - background-image: url("corner-ripple.png"); + background-image: url("corner-ripple-ltr.png"); +} + +.ripple-box:rtl { + background-image: url("corner-ripple-rtl.png"); } .switcher-arrow { diff --git a/js/ui/panel.js b/js/ui/panel.js index 5ef212a93..8cbceb051 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -706,6 +706,8 @@ HotCorner.prototype = { x: x, y: y }); ripple._opacity = startOpacity; + if (ripple.get_direction() == St.TextDirection.RTL) + ripple.set_anchor_point_from_gravity(Clutter.Gravity.NORTH_EAST); Tweener.addTween(ripple, { _opacity: finalOpacity, scale_x: finalScale, scale_y: finalScale,