Add DarkTheme and LightTheme switching
This commit is contained in:
17 files changed
+206
-73
No files matched your search
@@ -4,9 +4,9 @@ import Asteria
|
||||
|
||||
Rectangle {
|
||||
id: header
|
||||
height: barsVisible ? Theme.headerHeight : 0
|
||||
height: barsVisible ? ThemeManager.currentTheme.headerHeight : 0
|
||||
clip: true
|
||||
color: Theme.surface
|
||||
color: ThemeManager.currentTheme.surface
|
||||
|
||||
property bool sidebarOpen: false
|
||||
property string currentPage: "starter"
|
||||
@@ -28,7 +28,7 @@ Rectangle {
|
||||
contentItem: Text {
|
||||
text: "\u2630"
|
||||
font.pixelSize: 24
|
||||
color: Theme.buttonAccent
|
||||
color: ThemeManager.currentTheme.buttonAccent
|
||||
}
|
||||
background: Item {}
|
||||
onClicked: header.menuClicked()
|
||||
@@ -44,7 +44,7 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
font.pixelSize: 16
|
||||
color: Theme.headerText
|
||||
color: ThemeManager.currentTheme.headerText
|
||||
}
|
||||
|
||||
Row {
|
||||
@@ -58,7 +58,7 @@ Rectangle {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
font.pixelSize: 16
|
||||
font.bold: true
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
|
||||
Timer {
|
||||
running: true
|
||||
|
||||
Reference in new issue
Block a user