Remove cutomizations for text color and hover from ActivityActionButton.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2024-09-01 21:31:41 +02:00 committed by Matthieu Gallien
parent 43bafda1eb
commit aaf9d6bd4c
No known key found for this signature in database
GPG key ID: 7D0F74F05C22F553

View file

@ -10,11 +10,7 @@ AbstractButton {
property bool primaryButton: false property bool primaryButton: false
property string imageSourceHover: ""
readonly property color adjustedHeaderColor: Style.adjustedCurrentUserHeaderColor 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 string verb: ""
property bool isTalkReplyButton: false property bool isTalkReplyButton: false
@ -22,12 +18,6 @@ AbstractButton {
leftPadding: root.text === "" ? Style.smallSpacing : Style.standardSpacing leftPadding: root.text === "" ? Style.smallSpacing : Style.standardSpacing
rightPadding: 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 { contentItem: Loader {
id: contentItemLoader id: contentItemLoader
active: true active: true
@ -57,10 +47,8 @@ AbstractButton {
NCButtonContents { NCButtonContents {
anchors.fill: parent anchors.fill: parent
hovered: root.hovered hovered: root.hovered
imageSourceHover: root.imageSourceHover
imageSource: root.icon.source imageSource: root.icon.source
text: root.text text: root.text
font.bold: root.primaryButton
} }
} }
} }