mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 19:18:53 +00:00
feat(SQ/StatusBaseButton): Added textHoverColor
property
Added `textHoverColor` property allowing more customization.
This commit is contained in:
parent
a7d430e309
commit
b1064644e8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user