From ef61ecf6aedc1f3aff17567e90b7f55add36848f Mon Sep 17 00:00:00 2001 From: 283375 Date: Sat, 15 Nov 2025 13:20:58 +0800 Subject: [PATCH] fix(ui.theme): expose colors to qml --- ui/theme/qml.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/theme/qml.py b/ui/theme/qml.py index 7a285a8..5eb50a5 100644 --- a/ui/theme/qml.py +++ b/ui/theme/qml.py @@ -28,6 +28,14 @@ class ThemeQmlExposer(QObject): def primary(self): return self._themeImpl.customPalette.primary + @Property(QColor, notify=themeChanged) + def secondary(self): + return self._themeImpl.customPalette.secondary + + @Property(QColor, notify=themeChanged) + def tertiary(self): + return self._themeImpl.customPalette.tertiary + @Property(QColor, notify=themeChanged) def success(self): return self._themeImpl.customPalette.success