Use accentColor rather than header colour where appropriate

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-11-19 11:02:46 +08:00
parent 7c317cb4d9
commit a8982465a9
No known key found for this signature in database
GPG key ID: C839200C384636B0
2 changed files with 4 additions and 2 deletions

View file

@ -212,7 +212,7 @@ ApplicationWindow {
height: parent.height height: parent.height
backgroundsVisible: false backgroundsVisible: false
accentColor: Style.currentUserHeaderColor accentColor: Style.accentColor
accountState: fileDetailsDrawer.folderAccountState accountState: fileDetailsDrawer.folderAccountState
localPath: fileDetailsDrawer.fileLocalPath localPath: fileDetailsDrawer.fileLocalPath
showCloseButton: true showCloseButton: true

View file

@ -9,8 +9,10 @@ QtObject {
readonly property bool darkMode: Theme.darkMode readonly property bool darkMode: Theme.darkMode
// Colors // Colors
readonly property color ncBlue: Theme.wizardHeaderBackgroundColor readonly property color ncBlue: Theme.wizardHeaderBackgroundColor
readonly property color ncHeaderTextColor: Theme.wizardHeaderTitleColor readonly property color ncHeaderTextColor: Theme.wizardHeaderTitleColor
readonly property color accentColor: UserModel.currentUser ? UserModel.currentUser.accentColor : ncBlue
readonly property color currentUserHeaderColor: UserModel.currentUser ? UserModel.currentUser.headerColor : ncBlue readonly property color currentUserHeaderColor: UserModel.currentUser ? UserModel.currentUser.headerColor : ncBlue
readonly property color currentUserHeaderTextColor: UserModel.currentUser ? UserModel.currentUser.headerTextColor : ncHeaderTextColor readonly property color currentUserHeaderTextColor: UserModel.currentUser ? UserModel.currentUser.headerTextColor : ncHeaderTextColor
readonly property color adjustedCurrentUserHeaderColor: Theme.darkMode ? Qt.lighter(currentUserHeaderColor, 2) readonly property color adjustedCurrentUserHeaderColor: Theme.darkMode ? Qt.lighter(currentUserHeaderColor, 2)