From 1bab7b32e58f40120cc7170eddd111c81b361691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 20 Jun 2024 14:32:17 +0200 Subject: [PATCH] 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: --- js/ui/barLevel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/barLevel.js b/js/ui/barLevel.js index 3e0f531c6..ab1495299 100644 --- a/js/ui/barLevel.js +++ b/js/ui/barLevel.js @@ -104,8 +104,6 @@ export const BarLevel = GObject.registerClass({ } vfunc_style_changed() { - super.vfunc_style_changed(); - const themeNode = this.get_theme_node(); this._barLevelHeight = themeNode.get_length('-barlevel-height'); this._overdriveSeparatorWidth = @@ -114,6 +112,8 @@ export const BarLevel = GObject.registerClass({ this._barLevelColor = themeNode.get_color('-barlevel-background-color'); this._barLevelActiveColor = themeNode.get_color('-barlevel-active-background-color'); this._barLevelOverdriveColor = themeNode.get_color('-barlevel-overdrive-color'); + + super.vfunc_style_changed(); } vfunc_repaint() {