Add DarkTheme and LightTheme switching
This commit is contained in:
17 files changed
+206
-73
No files matched your search
@@ -18,16 +18,9 @@ QtObject {
|
||||
readonly property color dimText: "#71738c"
|
||||
readonly property color counterText: "#606175"
|
||||
|
||||
readonly property int sidebarWidth: 240
|
||||
|
||||
readonly property color gradientTop: "#0e1125"
|
||||
readonly property color gradientBottom: "#191d35"
|
||||
readonly property color divider: Qt.rgba(1, 1, 1, 0.12)
|
||||
readonly property color overlayBg: Qt.rgba(0.055, 0.055, 0.067, 0.4)
|
||||
readonly property color actionDisabled: "#141724"
|
||||
|
||||
readonly property int headerHeight: 64
|
||||
readonly property int footerHeight: 28
|
||||
readonly property int animDurationOpen: 225
|
||||
readonly property int animDurationClose: 195
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
pragma Singleton
|
||||
import QtQuick
|
||||
|
||||
QtObject {
|
||||
readonly property color backgroundDeepest: "#f5f5f5"
|
||||
readonly property color backgroundDefault: "#ffffff"
|
||||
readonly property color surface: "#f0f0f0"
|
||||
readonly property color headerBg: "#e8e8e8"
|
||||
readonly property color footerBg: "#e0e0e0"
|
||||
readonly property color scrollbarTrack: "#d0d0d0"
|
||||
readonly property color scrollbarThumb: "#a0a0a0"
|
||||
readonly property color primaryAccent: "#3a5688"
|
||||
readonly property color buttonAccent: "#5785c1"
|
||||
readonly property color sidebarButtonText: "#333333"
|
||||
readonly property color readingText: "#222222"
|
||||
readonly property color uiText: "#444444"
|
||||
readonly property color headerText: "#555555"
|
||||
readonly property color dimText: "#666666"
|
||||
readonly property color counterText: "#777777"
|
||||
|
||||
readonly property color gradientTop: "#f8f8f8"
|
||||
readonly property color gradientBottom: "#f0f0f0"
|
||||
readonly property color divider: Qt.rgba(0, 0, 0, 0.12)
|
||||
readonly property color overlayBg: Qt.rgba(0.95, 0.95, 0.95, 0.4)
|
||||
readonly property color actionDisabled: "#e0e0e0"
|
||||
}
|
||||
+16
-2
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Asteria
|
||||
import QtQml
|
||||
|
||||
ApplicationWindow {
|
||||
id: window
|
||||
@@ -8,7 +9,7 @@ ApplicationWindow {
|
||||
height: 768
|
||||
visible: true
|
||||
title: "Asteria"
|
||||
color: Theme.backgroundDeepest
|
||||
color: ThemeManager.currentTheme.backgroundDeepest
|
||||
|
||||
FontLoader {
|
||||
id: materialIcons
|
||||
@@ -30,6 +31,12 @@ ApplicationWindow {
|
||||
x = appState.windowX
|
||||
y = appState.windowY
|
||||
}
|
||||
|
||||
// Initialize theme from AppState
|
||||
if (appState.themeName !== "") {
|
||||
ThemeManager.currentThemeName = appState.themeName
|
||||
}
|
||||
|
||||
if (appState.lastFilePath !== "") {
|
||||
window._restoringState = true
|
||||
bookController.openBook(appState.lastFileUrl())
|
||||
@@ -40,6 +47,13 @@ ApplicationWindow {
|
||||
window.currentPage = savedPage
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: appState
|
||||
function onThemeNameChanged() {
|
||||
ThemeManager.currentThemeName = appState.themeName
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: geometrySaveTimer
|
||||
@@ -93,7 +107,7 @@ ApplicationWindow {
|
||||
Item {
|
||||
id: contentArea
|
||||
width: parent.width
|
||||
height: parent.height - header.height - (footerLoader.active ? Theme.footerHeight : 0)
|
||||
height: parent.height - header.height - (footerLoader.active ? ThemeManager.currentTheme.footerHeight : 0)
|
||||
|
||||
StarterPage {
|
||||
anchors.fill: parent
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
pragma Singleton
|
||||
import QtQuick
|
||||
|
||||
QtObject {
|
||||
readonly property int sidebarWidth: 240
|
||||
readonly property int headerHeight: 64
|
||||
readonly property int footerHeight: 28
|
||||
readonly property int animDurationOpen: 225
|
||||
readonly property int animDurationClose: 195
|
||||
|
||||
property string currentThemeName: "dark"
|
||||
|
||||
readonly property var currentTheme: currentThemeName === "dark" ? DarkTheme : LightTheme
|
||||
|
||||
function setDarkTheme() {
|
||||
currentThemeName = "dark"
|
||||
if (appState) {
|
||||
appState.themeName = "dark"
|
||||
}
|
||||
}
|
||||
|
||||
function setLightTheme() {
|
||||
currentThemeName = "light"
|
||||
if (appState) {
|
||||
appState.themeName = "light"
|
||||
}
|
||||
}
|
||||
|
||||
function toggleTheme() {
|
||||
currentThemeName = currentThemeName === "dark" ? "light" : "dark"
|
||||
if (appState) {
|
||||
appState.themeName = currentThemeName
|
||||
}
|
||||
}
|
||||
|
||||
onCurrentThemeNameChanged: {
|
||||
// This ensures UI updates when theme changes
|
||||
// The actual theme switching happens through the currentTheme property
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ import QtQuick.Controls
|
||||
import Asteria
|
||||
|
||||
Rectangle {
|
||||
height: Theme.footerHeight
|
||||
color: Theme.footerBg
|
||||
height: ThemeManager.currentTheme.footerHeight
|
||||
color: ThemeManager.currentTheme.footerBg
|
||||
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: 1
|
||||
color: Theme.divider
|
||||
color: ThemeManager.currentTheme.divider
|
||||
anchors.top: parent.top
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ Rectangle {
|
||||
text: "\ue5cb"
|
||||
font.family: "Material Icons Outlined"
|
||||
font.pixelSize: 16
|
||||
color: prevBtn.enabled ? Theme.dimText : Theme.actionDisabled
|
||||
color: prevBtn.enabled ? ThemeManager.currentTheme.dimText : ThemeManager.currentTheme.actionDisabled
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
@@ -45,7 +45,7 @@ Rectangle {
|
||||
: ""
|
||||
font.pixelSize: 11
|
||||
font.bold: true
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
}
|
||||
|
||||
// Next chapter button
|
||||
@@ -63,7 +63,7 @@ Rectangle {
|
||||
text: "\ue5cc"
|
||||
font.family: "Material Icons Outlined"
|
||||
font.pixelSize: 16
|
||||
color: nextBtn.enabled ? Theme.dimText : Theme.actionDisabled
|
||||
color: nextBtn.enabled ? ThemeManager.currentTheme.dimText : ThemeManager.currentTheme.actionDisabled
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
@@ -81,6 +81,6 @@ Rectangle {
|
||||
: ""
|
||||
font.pixelSize: 11
|
||||
font.bold: true
|
||||
color: Theme.counterText
|
||||
color: ThemeManager.currentTheme.counterText
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -53,8 +53,8 @@ Rectangle {
|
||||
}
|
||||
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: Theme.gradientTop }
|
||||
GradientStop { position: 1.0; color: Theme.gradientBottom }
|
||||
GradientStop { position: 0.0; color: ThemeManager.currentTheme.gradientTop }
|
||||
GradientStop { position: 1.0; color: ThemeManager.currentTheme.gradientBottom }
|
||||
}
|
||||
|
||||
function updateContentWidth() {
|
||||
@@ -81,7 +81,7 @@ Rectangle {
|
||||
textFormat: Text.RichText
|
||||
font.pixelSize: appState.fontSize
|
||||
lineHeight: appState.lineSpacing
|
||||
color: Theme.readingText
|
||||
color: ThemeManager.currentTheme.readingText
|
||||
text: model.content
|
||||
}
|
||||
|
||||
@@ -101,11 +101,11 @@ Rectangle {
|
||||
contentItem: Rectangle {
|
||||
implicitWidth: 18
|
||||
radius: 3
|
||||
color: Theme.scrollbarThumb
|
||||
color: ThemeManager.currentTheme.scrollbarThumb
|
||||
}
|
||||
background: Rectangle {
|
||||
implicitWidth: 18
|
||||
color: Theme.scrollbarTrack
|
||||
color: ThemeManager.currentTheme.scrollbarTrack
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ import Asteria
|
||||
|
||||
Rectangle {
|
||||
id: sidebar
|
||||
width: sidebarOpen ? Theme.sidebarWidth : 0
|
||||
width: sidebarOpen ? ThemeManager.sidebarWidth : 0
|
||||
clip: true
|
||||
color: Theme.surface
|
||||
color: ThemeManager.currentTheme.surface
|
||||
|
||||
property bool sidebarOpen: false
|
||||
|
||||
@@ -17,7 +17,7 @@ Rectangle {
|
||||
|
||||
Behavior on width {
|
||||
NumberAnimation {
|
||||
duration: sidebarOpen ? Theme.animDurationOpen : Theme.animDurationClose
|
||||
duration: sidebarOpen ? ThemeManager.animDurationOpen : ThemeManager.animDurationClose
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
}
|
||||
@@ -25,25 +25,25 @@ Rectangle {
|
||||
Text {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 16
|
||||
y: Theme.headerHeight / 2 - height / 2
|
||||
y: ThemeManager.headerHeight / 2 - height / 2
|
||||
text: "Asteria"
|
||||
font.pixelSize: 18
|
||||
font.bold: true
|
||||
color: Theme.uiText
|
||||
color: ThemeManager.currentTheme.uiText
|
||||
}
|
||||
|
||||
// Close button aligned with main header row
|
||||
Button {
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 12
|
||||
y: Theme.headerHeight / 2 - height / 2
|
||||
y: ThemeManager.headerHeight / 2 - height / 2
|
||||
z: 1
|
||||
flat: true
|
||||
contentItem: Text {
|
||||
text: "\ue5cb"
|
||||
font.family: "Material Icons Outlined"
|
||||
font.pixelSize: 24
|
||||
color: Theme.sidebarButtonText
|
||||
color: DarkTheme.sidebarButtonText
|
||||
}
|
||||
background: Item {}
|
||||
onClicked: sidebar.closeDrawer()
|
||||
@@ -51,8 +51,8 @@ Rectangle {
|
||||
|
||||
Column {
|
||||
id: navColumn
|
||||
y: Theme.headerHeight
|
||||
width: Theme.sidebarWidth
|
||||
y: ThemeManager.headerHeight
|
||||
width: ThemeManager.sidebarWidth
|
||||
|
||||
SideBarButton {
|
||||
iconText: "\ue86d"
|
||||
@@ -83,26 +83,26 @@ Rectangle {
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: 1
|
||||
color: Theme.divider
|
||||
color: ThemeManager.currentTheme.divider
|
||||
}
|
||||
|
||||
SideBarButton {
|
||||
iconText: "\ue3a9"
|
||||
title: "Dark Theme"
|
||||
onClicked: {} // Non-functional
|
||||
onClicked: ThemeManager.setDarkTheme()
|
||||
}
|
||||
|
||||
SideBarButton {
|
||||
iconText: "\ue3a6"
|
||||
title: "Light Theme"
|
||||
onClicked: {} // Non-functional
|
||||
onClicked: ThemeManager.setLightTheme()
|
||||
}
|
||||
|
||||
// Divider
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: 1
|
||||
color: Theme.divider
|
||||
color: ThemeManager.currentTheme.divider
|
||||
}
|
||||
|
||||
SideBarButton {
|
||||
@@ -123,7 +123,7 @@ Rectangle {
|
||||
id: tocDivider
|
||||
width: parent.width
|
||||
height: 1
|
||||
color: Theme.divider
|
||||
color: ThemeManager.currentTheme.divider
|
||||
}
|
||||
|
||||
Text {
|
||||
@@ -135,7 +135,7 @@ Rectangle {
|
||||
text: "Contents"
|
||||
font.pixelSize: 10
|
||||
font.bold: true
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
font.letterSpacing: 1
|
||||
}
|
||||
|
||||
@@ -162,8 +162,8 @@ Rectangle {
|
||||
text: modelData.title
|
||||
font.pixelSize: 13
|
||||
color: readingModel.currentChapter === modelData.chapterIndex
|
||||
? Theme.sidebarButtonText
|
||||
: Theme.uiText
|
||||
? ThemeManager.sidebarButtonText
|
||||
: ThemeManager.uiText
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.NoWrap
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ Rectangle {
|
||||
id: root
|
||||
height: 48
|
||||
width: parent ? parent.width : 240
|
||||
color: mouseArea.containsMouse ? Qt.lighter(Theme.headerBg, 1.3) : "transparent"
|
||||
color: mouseArea.containsMouse ? Qt.lighter(ThemeManager.currentTheme.headerBg, 1.3) : "transparent"
|
||||
|
||||
property string iconText: ""
|
||||
property string title: ""
|
||||
@@ -22,14 +22,14 @@ Rectangle {
|
||||
text: root.iconText
|
||||
font.family: "Material Icons Outlined"
|
||||
font.pixelSize: 24
|
||||
color: Theme.sidebarButtonText
|
||||
color: ThemeManager.currentTheme.sidebarButtonText
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: root.title
|
||||
font.pixelSize: 14
|
||||
color: Theme.sidebarButtonText
|
||||
color: ThemeManager.currentTheme.sidebarButtonText
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@ import QtQuick.Controls
|
||||
import Asteria
|
||||
|
||||
Rectangle {
|
||||
color: Theme.backgroundDefault
|
||||
color: ThemeManager.currentTheme.backgroundDefault
|
||||
|
||||
Text {
|
||||
visible: appState.libraryBooks.length === 0
|
||||
anchors.centerIn: parent
|
||||
text: "No books read yet.\nOpen a book to start your library."
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
font.pixelSize: 14
|
||||
lineHeight: 1.6
|
||||
}
|
||||
@@ -27,7 +27,7 @@ Rectangle {
|
||||
id: bookRow
|
||||
width: ListView.view.width
|
||||
height: bookInfoCol.implicitHeight + 24
|
||||
color: Theme.surface
|
||||
color: ThemeManager.currentTheme.surface
|
||||
radius: 4
|
||||
|
||||
Row {
|
||||
@@ -47,7 +47,7 @@ Rectangle {
|
||||
Text {
|
||||
width: parent.width
|
||||
text: modelData.title || "Unknown Title"
|
||||
color: Theme.uiText
|
||||
color: ThemeManager.currentTheme.uiText
|
||||
font.pixelSize: 14
|
||||
font.bold: true
|
||||
elide: Text.ElideRight
|
||||
@@ -57,14 +57,14 @@ Rectangle {
|
||||
visible: modelData.author !== ""
|
||||
width: parent.width
|
||||
text: modelData.author
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
font.pixelSize: 12
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
||||
Text {
|
||||
text: Math.round(modelData.progress * 100) + "%"
|
||||
color: Theme.buttonAccent
|
||||
color: ThemeManager.currentTheme.buttonAccent
|
||||
font.pixelSize: 12
|
||||
}
|
||||
}
|
||||
@@ -77,7 +77,7 @@ Rectangle {
|
||||
text: "\ue872"
|
||||
font.family: "Material Icons Outlined"
|
||||
font.pixelSize: 20
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ import Asteria
|
||||
|
||||
Rectangle {
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: Theme.gradientTop }
|
||||
GradientStop { position: 1.0; color: Theme.gradientBottom }
|
||||
GradientStop { position: 0.0; color: ThemeManager.currentTheme.gradientTop }
|
||||
GradientStop { position: 1.0; color: ThemeManager.currentTheme.gradientBottom }
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
@@ -22,7 +22,7 @@ Rectangle {
|
||||
text: "Reading"
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.Medium
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
leftPadding: 4
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ Rectangle {
|
||||
id: labelH
|
||||
text: "Horizontal margin"
|
||||
font.pixelSize: 15
|
||||
color: Theme.uiText
|
||||
color: ThemeManager.currentTheme.uiText
|
||||
leftPadding: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
@@ -46,7 +46,7 @@ Rectangle {
|
||||
id: valueH
|
||||
text: appState.horizontalMargin + " px"
|
||||
font.pixelSize: 13
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
@@ -75,7 +75,7 @@ Rectangle {
|
||||
id: labelV
|
||||
text: "Vertical margin"
|
||||
font.pixelSize: 15
|
||||
color: Theme.uiText
|
||||
color: ThemeManager.currentTheme.uiText
|
||||
leftPadding: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
@@ -83,7 +83,7 @@ Rectangle {
|
||||
id: valueV
|
||||
text: appState.verticalMargin + " px"
|
||||
font.pixelSize: 13
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
@@ -112,7 +112,7 @@ Rectangle {
|
||||
id: labelF
|
||||
text: "Font size"
|
||||
font.pixelSize: 15
|
||||
color: Theme.uiText
|
||||
color: ThemeManager.currentTheme.uiText
|
||||
leftPadding: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
@@ -120,7 +120,7 @@ Rectangle {
|
||||
id: valueF
|
||||
text: appState.fontSize + " px"
|
||||
font.pixelSize: 13
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
@@ -149,7 +149,7 @@ Rectangle {
|
||||
id: labelL
|
||||
text: "Line spacing"
|
||||
font.pixelSize: 15
|
||||
color: Theme.uiText
|
||||
color: ThemeManager.currentTheme.uiText
|
||||
leftPadding: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
@@ -157,7 +157,7 @@ Rectangle {
|
||||
id: valueL
|
||||
text: appState.lineSpacing.toFixed(1) + "×"
|
||||
font.pixelSize: 13
|
||||
color: Theme.dimText
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 4
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
@@ -3,8 +3,8 @@ import Asteria
|
||||
|
||||
Rectangle {
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: Theme.gradientTop }
|
||||
GradientStop { position: 1.0; color: Theme.gradientBottom }
|
||||
GradientStop { position: 0.0; color: ThemeManager.currentTheme.gradientTop }
|
||||
GradientStop { position: 1.0; color: ThemeManager.currentTheme.gradientBottom }
|
||||
}
|
||||
|
||||
Image {
|
||||
|
||||
Reference in new issue
Block a user