fix(ui.theme): expose colors to qml

This commit is contained in:
2025-11-15 13:20:58 +08:00
parent 71e9f05632
commit ef61ecf6ae

View File

@ -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