From f7447ef65b810ffe578b8efe65b539f096ffb659 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 19 May 2023 22:58:17 +0800 Subject: [PATCH] Add darker hover to make hovering on an item within an item with lightHover visible Signed-off-by: Claudio Cambra --- src/gui/tray/ActivityItemContent.qml | 4 ++-- theme/Style/Style.qml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2