Add DarkTheme and LightTheme switching
This commit is contained in:
17 files changed
+206
-73
No files matched your search
@@ -4,7 +4,7 @@ import Asteria
|
||||
|
||||
Rectangle {
|
||||
id: overlay
|
||||
color: Theme.overlayBg
|
||||
color: ThemeManager.currentTheme.overlayBg
|
||||
visible: bookController.errorMessage !== ""
|
||||
|
||||
MouseArea {
|
||||
@@ -16,7 +16,7 @@ Rectangle {
|
||||
anchors.centerIn: parent
|
||||
width: Math.min(overlay.width * 0.7, 440)
|
||||
height: dialogColumn.implicitHeight + 48
|
||||
color: Theme.surface
|
||||
color: ThemeManager.currentTheme.surface
|
||||
radius: 8
|
||||
|
||||
Column {
|
||||
@@ -35,7 +35,7 @@ Rectangle {
|
||||
width: parent.width
|
||||
text: bookController.errorMessage
|
||||
font.pixelSize: 15
|
||||
color: Theme.readingText
|
||||
color: ThemeManager.currentTheme.readingText
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.Wrap
|
||||
}
|
||||
@@ -53,7 +53,7 @@ Rectangle {
|
||||
implicitWidth: 80
|
||||
implicitHeight: 36
|
||||
radius: 4
|
||||
color: parent.hovered ? Qt.lighter(Theme.primaryAccent, 1.15) : Theme.primaryAccent
|
||||
color: parent.hovered ? Qt.lighter(ThemeManager.currentTheme.primaryAccent, 1.15) : ThemeManager.currentTheme.primaryAccent
|
||||
}
|
||||
onClicked: bookController.clearError()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user