Remove cutomizations for text color and hover from ActivityActionButton.
authorCamila Ayres <hello@camilasan.com>
Sun, 1 Sep 2024 19:31:41 +0000 (21:31 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 6 Sep 2024 08:55:43 +0000 (10:55 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/tray/ActivityActionButton.qml

index ceb9a435fa6e927c0ca4169dce58c50044b82079..36b92035c00a19a486729be7340e0cee40f30005 100644 (file)
@@ -10,11 +10,7 @@ AbstractButton {
 
     property bool primaryButton: false
 
-    property string imageSourceHover: ""
-
     readonly property color adjustedHeaderColor: Style.adjustedCurrentUserHeaderColor
-    readonly property color textColor: primaryButton ? adjustedHeaderColor : palette.buttonText
-    readonly property color textColorHovered: primaryButton ? Style.currentUserHeaderTextColor : palette.buttonText
 
     property string verb: ""
     property bool isTalkReplyButton: false
@@ -22,12 +18,6 @@ AbstractButton {
     leftPadding: root.text === "" ? Style.smallSpacing : Style.standardSpacing
     rightPadding: root.text === "" ? Style.smallSpacing : Style.standardSpacing
 
-    background: NCButtonBackground {
-        color: Style.currentUserHeaderColor
-        hovered: root.hovered
-        visible: root.primaryButton
-    }
-
     contentItem: Loader {
         id: contentItemLoader
         active: true
@@ -57,10 +47,8 @@ AbstractButton {
         NCButtonContents {
             anchors.fill: parent
             hovered: root.hovered
-            imageSourceHover: root.imageSourceHover
             imageSource: root.icon.source
             text: root.text
-            font.bold: root.primaryButton
         }
     }
 }