feat(StatusChatInfoButton): Add possibility to enforce hiding type icon

This commit is contained in:
Michał Cieślak 2022-12-20 01:06:13 +01:00 committed by Michał
parent 4c4abdbea2
commit ce3146ebc8
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ Button {
property bool muted
property int pinnedMessagesCount
property bool forceHideTypeIcon: false
property StatusAssetSettings asset: StatusAssetSettings {
width: 36
height: 36
@ -77,7 +79,7 @@ Button {
spacing: 1
StatusIcon {
visible: root.type !== StatusChatInfoButton.Type.OneToOneChat
visible: root.type !== StatusChatInfoButton.Type.OneToOneChat && !forceHideTypeIcon
Layout.preferredWidth: 14
Layout.preferredHeight: 14
color: root.muted ? Theme.palette.baseColor1 : Theme.palette.directColor1