Skip to content

Commit

Permalink
feat(SQ/StatusBaseButton): Added textHoverColor property
Browse files Browse the repository at this point in the history
Added `textHoverColor` property allowing more customization.
  • Loading branch information
noeliaSD committed Nov 1, 2023
1 parent a7d430e commit b106464
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/StatusQ/src/StatusQ/Controls/StatusBaseButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit b106464

Please sign in to comment.