mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-27 14:23:18 +03:00
94edf799b6
- New design based on Material Style - Light mode and Dark mode - Add support for custom CCID readers - New tray functionality - Support for favorite credentials Co-authored-by: Rikard <rikard@yubico.com>
51 lines
1.6 KiB
QML
51 lines
1.6 KiB
QML
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: 64
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
ColumnLayout {
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
Layout.topMargin: -80
|
|
|
|
StyledImage {
|
|
source: "../images/search.svg"
|
|
color: app.isDark() ? defaultLightForeground : defaultLightOverlay
|
|
iconWidth: 80
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
}
|
|
|
|
Label {
|
|
text: "No credentials found"
|
|
Layout.rowSpan: 1
|
|
wrapMode: Text.WordWrap
|
|
font.pixelSize: 16
|
|
font.weight: Font.Normal
|
|
lineHeight: 1.5
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
color: formText
|
|
}
|
|
Label {
|
|
text: "No credentials matching your search criteria. Check your spelling and try again."
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
Layout.minimumWidth: 320
|
|
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: formLabel
|
|
}
|
|
}
|
|
}
|