ui/animation: Fix a de-ClutterColor fallout
Fixes: 7f0b1e98c ("cleanup: Adapt to removed ClutterColor") Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7722 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3371>
This commit is contained in:
parent
258ad57b87
commit
0cdddaa4a7
@ -147,7 +147,7 @@ class Spinner extends AnimatedIcon {
|
|||||||
this.connect('style-changed', () => {
|
this.connect('style-changed', () => {
|
||||||
const themeNode = this.get_theme_node();
|
const themeNode = this.get_theme_node();
|
||||||
const textColor = themeNode.get_foreground_color();
|
const textColor = themeNode.get_foreground_color();
|
||||||
const [, luminance] = textColor.to_hls();
|
const [, , luminance] = textColor.to_hsl();
|
||||||
const file = luminance > 0.5
|
const file = luminance > 0.5
|
||||||
? this._fileDark
|
? this._fileDark
|
||||||
: this._fileLight;
|
: this._fileLight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user