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
backgroundsVisible: false
accentColor: Style.currentUserHeaderColor
accentColor: Style.accentColor
accountState: fileDetailsDrawer.folderAccountState
localPath: fileDetailsDrawer.fileLocalPath
showCloseButton: true

View file

@ -11,6 +11,8 @@ QtObject {
// Colors
readonly property color ncBlue: Theme.wizardHeaderBackgroundColor
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 currentUserHeaderTextColor: UserModel.currentUser ? UserModel.currentUser.headerTextColor : ncHeaderTextColor
readonly property color adjustedCurrentUserHeaderColor: Theme.darkMode ? Qt.lighter(currentUserHeaderColor, 2)