gnome-shell/js/ui/status
Florian Müllner 059af4c4cd a11y: Change HC icon theme first
There are two ways for applications to provide a high contrast icon:

 1. install an icon into the HighContrast theme
 2. install a symbolic icon into the default hicolor theme

The latter is preferred nowadays, and implemented in the high-contrast
CSS variant by enforcing the symbolic icon style.

However together with the way we currently enable/disable high-contrast,
this can lead to the following race:
 1. the GTK theme is changed from HighContrast
 2. we reload the default stylesheet
 3. the icon style changes to "regular", so we request a
    new icon from the HighContrast icon theme
 4. the icon theme is changed from HighContrast
 5. we evict existing icons from the cache
 6. we reload icons for the new icon theme; however as we
    find a pending request (from 3), we re-use it
 7. the request from 3 finishes, and we end up with a
    wrong icon in the cache

The simplest fix is to change the icon theme before the GTK theme: Unlike the
theme name, the icon style is encoded in the cache key, so we won't re-use
an old (and incorrect) request in that case.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2414
2020-03-31 01:12:34 +02:00
..
accessibility.js a11y: Change HC icon theme first 2020-03-31 01:12:34 +02:00
bluetooth.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
brightness.js brightness: Ignore slider changes we initiated ourselves 2019-08-13 16:35:17 +02:00
dwellClick.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
keyboard.js cleanup: Use consistent style for ternary operator 2019-09-15 13:30:19 +00:00
location.js cleanup: Use consistent style for ternary operator 2019-09-15 13:30:19 +00:00
network.js cleanup: Don't add linebreak before operators 2019-09-15 16:02:45 +02:00
nightLight.js cleanup: Use consistent style for ternary operator 2019-09-15 13:30:19 +00:00
power.js power: Handle "100% but charging" case 2019-11-22 00:33:23 +01:00
remoteAccess.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
rfkill.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
screencast.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
system.js cleanup: Disambiguate assignments in arrow functions 2019-09-15 16:02:45 +02:00
thunderbolt.js cleanup: Disambiguate assignments in arrow functions 2019-09-15 16:02:45 +02:00
volume.js volume: Clarify some code 2019-09-15 16:02:45 +02:00