From: Claudio Cambra Date: Fri, 19 May 2023 14:58:17 +0000 (+0800) Subject: Add darker hover to make hovering on an item within an item with lightHover visible X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~26^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f7447ef65b810ffe578b8efe65b539f096ffb659;p=nextcloud-desktop.git Add darker hover to make hovering on an item within an item with lightHover visible Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/ActivityItemContent.qml b/src/gui/tray/ActivityItemContent.qml index 2c978d4f3..3a042afd3 100644 --- a/src/gui/tray/ActivityItemContent.qml +++ b/src/gui/tray/ActivityItemContent.qml @@ -182,7 +182,7 @@ RowLayout { display: Button.IconOnly leftPadding: 0 rightPadding: 0 - bgColor: Style.lightHover + bgColor: Style.darkerHover bgNormalOpacity: 0 visible: model.showFileDetails @@ -204,7 +204,7 @@ RowLayout { display: Button.IconOnly leftPadding: 0 rightPadding: 0 - bgColor: Style.lightHover + bgColor: Style.darkerHover bgNormalOpacity: 0 NCToolTip { diff --git a/theme/Style/Style.qml b/theme/Style/Style.qml index e8fcbd4a3..a41ed4bff 100644 --- a/theme/Style/Style.qml +++ b/theme/Style/Style.qml @@ -14,6 +14,7 @@ QtObject { readonly property color ncSecondaryTextColor: "#808080" readonly property color ncHeaderTextColor: "white" 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 backgroundColor: Theme.systemPalette.base readonly property color buttonBackgroundColor: Theme.systemPalette.button