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
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
NCButtonContents {
anchors.fill: parent
hovered: root.hovered
- imageSourceHover: root.imageSourceHover
imageSource: root.icon.source
text: root.text
- font.bold: root.primaryButton
}
}
}