feat(StatusChatListCategoryItemButton): introduce `highglighted` property
This commit is contained in:
parent
916dcc9c7f
commit
645a3b79a2
|
@ -8,13 +8,14 @@ StatusFlatRoundButton {
|
||||||
width: 22
|
width: 22
|
||||||
radius: 4
|
radius: 4
|
||||||
|
|
||||||
|
property bool highlighted: false
|
||||||
property alias tooltip: statusToolTip
|
property alias tooltip: statusToolTip
|
||||||
|
|
||||||
type: StatusFlatRoundButton.Type.Secondary
|
type: StatusFlatRoundButton.Type.Secondary
|
||||||
icon.width: 20
|
icon.width: 20
|
||||||
icon.color: Theme.palette.directColor4
|
icon.color: Theme.palette.directColor4
|
||||||
|
|
||||||
color: hovered ?
|
color: hovered || highlighted ?
|
||||||
Theme.palette.statusChatListCategoryItem.buttonHoverBackgroundColor :
|
Theme.palette.statusChatListCategoryItem.buttonHoverBackgroundColor :
|
||||||
"transparent"
|
"transparent"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue