feat(SQ/StatusBaseButton): Added `textHoverColor` property

Added `textHoverColor` property allowing more customization.
This commit is contained in:
Noelia 2023-10-31 14:03:37 +01:00 committed by Noelia
parent a7d430e309
commit b1064644e8
1 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,7 @@ Button {
property color disabledColor
property color textColor
property color textHoverColor: textColor
property color disabledTextColor
property color borderColor: "transparent"
property bool textFillWidth: false
@ -53,7 +54,10 @@ Button {
QtObject {
id: d
readonly property color textColor: root.enabled || root.loading ? root.textColor : root.disabledTextColor
readonly property color textColor: root.hovered && (root.enabled || root.loading) ? root.textHoverColor :
root.enabled || root.loading ? root.textColor
: root.disabledTextColor
readonly property bool iconOnly: root.display === AbstractButton.IconOnly || root.text === ""
readonly property int iconSize: {
switch(root.size) {