barLevel: Update cached style values before chaining up
St.DrawingArea emits the `repaint` signal on style changes, so if we chain up first, drawing still happens with the previously cached values. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3376>
This commit is contained in:
parent
946ee93692
commit
1bab7b32e5
@ -104,8 +104,6 @@ export const BarLevel = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
vfunc_style_changed() {
|
vfunc_style_changed() {
|
||||||
super.vfunc_style_changed();
|
|
||||||
|
|
||||||
const themeNode = this.get_theme_node();
|
const themeNode = this.get_theme_node();
|
||||||
this._barLevelHeight = themeNode.get_length('-barlevel-height');
|
this._barLevelHeight = themeNode.get_length('-barlevel-height');
|
||||||
this._overdriveSeparatorWidth =
|
this._overdriveSeparatorWidth =
|
||||||
@ -114,6 +112,8 @@ export const BarLevel = GObject.registerClass({
|
|||||||
this._barLevelColor = themeNode.get_color('-barlevel-background-color');
|
this._barLevelColor = themeNode.get_color('-barlevel-background-color');
|
||||||
this._barLevelActiveColor = themeNode.get_color('-barlevel-active-background-color');
|
this._barLevelActiveColor = themeNode.get_color('-barlevel-active-background-color');
|
||||||
this._barLevelOverdriveColor = themeNode.get_color('-barlevel-overdrive-color');
|
this._barLevelOverdriveColor = themeNode.get_color('-barlevel-overdrive-color');
|
||||||
|
|
||||||
|
super.vfunc_style_changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
vfunc_repaint() {
|
vfunc_repaint() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user