status-desktop/ui/imports/shared/panels/NoImageUploadedPanel.qml
Stefan 31fbc47053 feat(shared/EditCroppedImagePanel): Generic modal to support image cropping
To be used by

- User image
- Community logo
- Community banner

Updates: #5118
2022-05-12 15:05:10 +03:00

52 lines
1.2 KiB
QML

import QtQuick 2.14
import QtQuick.Layouts 1.14
import utils 1.0
import shared.panels 1.0
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
/*!
/brief Image icon and ulopad text hints for banner and logo
*/
Item {
id: root
implicitWidth: mainLayout.implicitWidth
implicitHeight: mainLayout.implicitHeight
property bool showARHint: false
ColumnLayout {
id: mainLayout
SVGImage {
id: imageImg
source: Style.svg("images_icon")
width: 20
height: 18
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
}
StatusBaseText {
id: uploadText
text: qsTr("Upload")
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.topMargin: 5
font.pixelSize: 15
color: Theme.palette.baseColor1
}
StatusBaseText {
id: optimalARText
text: qsTr("Wide aspect ratio is optimal")
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: root.showARHint
Layout.topMargin: 5
font.pixelSize: 15
color: Theme.palette.baseColor1
}
}
}