Add darker hover to make hovering on an item within an item with lightHover visible

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-05-19 22:58:17 +08:00 committed by Matthieu Gallien
parent 3145f9cf83
commit 6237898b73
2 changed files with 3 additions and 2 deletions

View file

@ -182,7 +182,7 @@ RowLayout {
display: Button.IconOnly display: Button.IconOnly
leftPadding: 0 leftPadding: 0
rightPadding: 0 rightPadding: 0
bgColor: Style.lightHover bgColor: Style.darkerHover
bgNormalOpacity: 0 bgNormalOpacity: 0
visible: model.showFileDetails visible: model.showFileDetails
@ -204,7 +204,7 @@ RowLayout {
display: Button.IconOnly display: Button.IconOnly
leftPadding: 0 leftPadding: 0
rightPadding: 0 rightPadding: 0
bgColor: Style.lightHover bgColor: Style.darkerHover
bgNormalOpacity: 0 bgNormalOpacity: 0
NCToolTip { NCToolTip {

View file

@ -14,6 +14,7 @@ QtObject {
readonly property color ncSecondaryTextColor: "#808080" readonly property color ncSecondaryTextColor: "#808080"
readonly property color ncHeaderTextColor: "white" readonly property color ncHeaderTextColor: "white"
readonly property color lightHover: Theme.darkMode ? Qt.lighter(backgroundColor, 2) : Qt.darker(backgroundColor, 1.05) readonly property color lightHover: Theme.darkMode ? Qt.lighter(backgroundColor, 2) : Qt.darker(backgroundColor, 1.05)
readonly property color darkerHover: Theme.darkMode ? Qt.lighter(backgroundColor, 2.35) : Qt.darker(backgroundColor, 1.25)
readonly property color menuBorder: Theme.darkMode ? Qt.lighter(backgroundColor, 2.5) : Qt.darker(backgroundColor, 1.5) readonly property color menuBorder: Theme.darkMode ? Qt.lighter(backgroundColor, 2.5) : Qt.darker(backgroundColor, 1.5)
readonly property color backgroundColor: Theme.systemPalette.base readonly property color backgroundColor: Theme.systemPalette.base
readonly property color buttonBackgroundColor: Theme.systemPalette.button readonly property color buttonBackgroundColor: Theme.systemPalette.button