yubioath-flutter/qml/NoResultsSection.qml

53 lines
1.6 KiB
QML
Raw Permalink Normal View History

import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.2
import QtGraphicalEffects 1.0
ColumnLayout {
readonly property int dynamicWidth: 380
readonly property int dynamicMargin: 32
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
ColumnLayout {
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.bottomMargin: 16
StyledImage {
source: "../images/search.svg"
color: defaultImageOverlay
iconWidth: 80
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
}
Label {
text: qsTr("No accounts found")
Layout.rowSpan: 1
wrapMode: Text.WordWrap
font.pixelSize: 16
font.weight: Font.Normal
lineHeight: 1.5
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
color: primaryColor
opacity: highEmphasis
}
Label {
text: qsTr("No accounts matching your search criteria. Check your spelling and try again.")
horizontalAlignment: Qt.AlignHCenter
Layout.minimumWidth: 300
Layout.maximumWidth: app.width - dynamicMargin
< dynamicWidth ? app.width - dynamicMargin : dynamicWidth
Layout.rowSpan: 1
lineHeight: 1.1
wrapMode: Text.WordWrap
font.pixelSize: 13
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
color: primaryColor
opacity: lowEmphasis
}
}
}