From 937691c858719a7cb8fee0fa97d40314a74ba5c8 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: (cherry picked from commit 1bab7b32e58f40120cc7170eddd111c81b361691) --- 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 aea1cb503..583e7b17b 100644 --- a/js/ui/barLevel.js +++ b/js/ui/barLevel.js @@ -108,8 +108,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._barLevelBorderWidth = @@ -135,6 +133,8 @@ export const BarLevel = GObject.registerClass({ themeNode.lookup_color('-barlevel-overdrive-border-color', false); this._barLevelOverdriveBorderColor = hasOverdriveBorderColor ? barLevelOverdriveBorderColor : this._barLevelOverdriveColor; + + super.vfunc_style_changed(); } vfunc_repaint() {