mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2026-02-27 16:11:09 +00:00
fix(ui.theme): expose colors to qml
This commit is contained in:
@ -28,6 +28,14 @@ class ThemeQmlExposer(QObject):
|
|||||||
def primary(self):
|
def primary(self):
|
||||||
return self._themeImpl.customPalette.primary
|
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)
|
@Property(QColor, notify=themeChanged)
|
||||||
def success(self):
|
def success(self):
|
||||||
return self._themeImpl.customPalette.success
|
return self._themeImpl.customPalette.success
|
||||||
|
|||||||
Reference in New Issue
Block a user