Adwaita: Fix color of focus outline on colorswatch
authorDaniel Boles <dboles@src.gnome.org>
Sat, 16 Sep 2017 16:02:24 +0000 (17:02 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sat, 16 Sep 2017 16:02:24 +0000 (17:02 +0100)
commit30cb5b07544764059aaa211cb733bfeb31fa0265
tree225cc75f2c8a768e6db1b166ca4045a276e2f8a0
parent437ce0197b5a6be71a738bfd477af1d045cb88d5
Adwaita: Fix color of focus outline on colorswatch

The focus outline disappeared as the colour of the swatch got close to
the normal focus outline colour, which is alpha(currentColor, 0.3).

Fix by making the outline an alpha’d version of the tick colour, but
more opaque than normal outlines. 0.6 seems good enough; feel free to
improve it, but at least this ensures the outline can’t vanish anymore.

HighContrast achieves this already because it applies the color property
to the main node, not the overlay. Doing that means the outline is fully
opaque, which is fine for HC obviously but was excessive for Adwaita.

https://bugzilla.gnome.org/show_bug.cgi?id=787757
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css