mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
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:
parent
3145f9cf83
commit
6237898b73
2 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue