status-desktop/ui/app/AppLayouts/Chat/panels/communities/WarningPanel.qml

45 lines
887 B
QML
Raw Normal View History

import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import utils 1.0
Control {
id: root
property alias text: warningText.text
spacing: Style.current.halfPadding
QtObject {
id: d
readonly property int iconSize: 20
}
contentItem: RowLayout {
spacing: root.spacing
StatusIcon {
Layout.preferredWidth: d.iconSize
Layout.preferredHeight: d.iconSize
Layout.alignment: Qt.AlignTop
color: Theme.palette.dangerColor1
icon: "warning"
}
StatusBaseText {
id: warningText
Layout.fillWidth: true
wrapMode: Text.Wrap
font.pixelSize: Style.current.primaryTextFontSize
color: Theme.palette.dangerColor1
}
}
}