diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index 6b90cae4b..1b74eb0b1 100644 --- a/src/gui/tray/MainWindow.qml +++ b/src/gui/tray/MainWindow.qml @@ -212,7 +212,7 @@ ApplicationWindow { height: parent.height backgroundsVisible: false - accentColor: Style.currentUserHeaderColor + accentColor: Style.accentColor accountState: fileDetailsDrawer.folderAccountState localPath: fileDetailsDrawer.fileLocalPath showCloseButton: true diff --git a/theme/Style/Style.qml b/theme/Style/Style.qml index 0ee8d5f5c..5e8f83a1c 100644 --- a/theme/Style/Style.qml +++ b/theme/Style/Style.qml @@ -9,8 +9,10 @@ QtObject { readonly property bool darkMode: Theme.darkMode // Colors - readonly property color ncBlue: Theme.wizardHeaderBackgroundColor + 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)