Remove image hover from NCButtonContents and CustomButton.
authorCamila Ayres <hello@camilasan.com>
Sat, 31 Aug 2024 14:08:44 +0000 (16:08 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 6 Sep 2024 08:42:08 +0000 (10:42 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/tray/CustomButton.qml
src/gui/tray/NCButtonContents.qml

index dfe12b5cf7adb28e693813baf5d5a6281ef0e9b9..2ed8dc40f36d725c9792cbef57658326d44f54b6 100644 (file)
@@ -40,7 +40,6 @@ Button {
         id: contents
         display: root.display
         hovered: root.hovered
-        imageSourceHover: root.imageSourceHover
         imageSource: root.icon.source
         imageSourceWidth: root.icon.width
         imageSourceHeight: root.icon.height
index dee1550837684d97e3f6b5169cf26f47bfc83d26..e0053d850436a416b5dcd581da5e76acfc7e3c57 100644 (file)
@@ -22,7 +22,6 @@ RowLayout {
     id: root
 
     property bool hovered: false
-    property string imageSourceHover: ""
     property string imageSource: ""
     property int imageSourceWidth: undefined
     property int imageSourceHeight: undefined
@@ -38,7 +37,7 @@ RowLayout {
         Layout.maximumHeight: root.height
         Layout.alignment: Qt.AlignCenter
 
-        source: root.hovered ? root.imageSourceHover : root.imageSource
+        source: root.imageSource
 
         sourceSize {
             width: root.imageSourceWidth