From 8ba8ce91f3317794b72fb4937c459dac2856d367 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Tue, 24 Apr 2018 17:53:56 -0700 Subject: [PATCH] fix(theme): clear stylesheet cache on theme colour change Fix #5092 --- src/widget/style.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widget/style.cpp b/src/widget/style.cpp index 5147bb99a..4e5c8fe94 100644 --- a/src/widget/style.cpp +++ b/src/widget/style.cpp @@ -196,6 +196,7 @@ void Style::repolish(QWidget* w) void Style::setThemeColor(int color) { + stylesheetsCache.clear(); // clear stylesheet cache which includes color info if (color < 0 || color >= themeColorColors.size()) setThemeColor(QColor()); else