cleanup: remove legacy StatusChatCommandButton

That component is now provided by StatusQ
This commit is contained in:
Pascal Precht 2021-10-28 11:44:09 +02:00 committed by Iuri Matias
parent 36f1ea8832
commit cfca6f42a5
2 changed files with 0 additions and 74 deletions

View File

@ -1,73 +0,0 @@
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13
import utils 1.0
import shared 1.0
import shared.panels 1.0
Button {
id: control
property int iconRotation: 0
implicitWidth: 168
implicitHeight: 95
icon.width: 12
icon.height: 12
onIconChanged: {
icon.source = icon.name ? Style.svg(icon.name) : ""
}
contentItem: Item {
anchors.fill: parent
Rectangle {
radius: 50
width: 40
height: 40
color: control.icon.color
anchors.top: parent.top
anchors.topMargin: Style.current.smallPadding
anchors.left: parent.left
anchors.leftMargin: Style.current.smallPadding
SVGImage {
id: iconImage
source: control.icon.source
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
width: control.icon.width
height: control.icon.height
fillMode: Image.PreserveAspectFit
rotation: control.iconRotation
antialiasing: true
}
ColorOverlay {
anchors.fill: iconImage
source: iconImage
color: Style.current.white
rotation: control.iconRotation
antialiasing: true
}
}
StyledText {
text: control.text
anchors.left: parent.left
anchors.leftMargin: Style.current.smallPadding
anchors.bottom: parent.bottom
anchors.bottomMargin: Style.current.smallPadding
font.weight: Font.Medium
font.pixelSize: 13
}
}
background: Rectangle {
radius: 16
color: Utils.setColorAlpha(icon.color, 0.2)
}
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onPressed: mouse.accepted = false
}
}

View File

@ -1,5 +1,4 @@
EmojiJSON 1.0 emojiList.js
StatusChatCommandButton 1.0 StatusChatCommandButton.qml
StatusChatCommandPopup 1.0 StatusChatCommandPopup.qml
StatusChatImage 1.0 StatusChatImage.qml
StatusChatImageExtensionValidator 1.0 StatusChatImageExtensionValidator.qml