[gnome-shell/wip/carlosg/magnifier-improvements: 36/44] magnifier: Apply color inversion to crosshairs/pointer



commit c150fe95b9001545f73f1cc1baf55d033686d82c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Feb 6 10:33:27 2020 +0100

    magnifier: Apply color inversion to crosshairs/pointer
    
    It is somewhat unexpected that crosshair color and pointer cursor colors
    remain the same across changes in color inversion settings, and may lead
    to contrast issues. Apply the effect on the common container, so it
    applies to these all.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/984

 js/ui/magnifier.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index af6c2567d6..8d2bf34a61 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -1324,7 +1324,7 @@ var ZoomRegion = class ZoomRegion {
             this._crossHairsActor = null;
 
         // Contrast and brightness effects.
-        this._magShaderEffects = new MagShaderEffects(this._uiGroupClone);
+        this._magShaderEffects = new MagShaderEffects(mainGroup);
         this._magShaderEffects.setColorSaturation(this._colorSaturation);
         this._magShaderEffects.setInvertLightness(this._invertLightness);
         this._magShaderEffects.setBrightness(this._brightness);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]