mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 18:58:29 +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>
44 lines
1.1 KiB
QML
44 lines
1.1 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
|
|
|
|
Pane {
|
|
id: expansionContainer
|
|
|
|
default property alias children: inner_space.data
|
|
|
|
readonly property int dynamicWidth: 864
|
|
readonly property int dynamicMargin: 32
|
|
|
|
property string sectionTitle
|
|
|
|
Layout.alignment: Qt.AlignCenter | Qt.AlignTop
|
|
Layout.fillWidth: true
|
|
Layout.maximumWidth: dynamicWidth + dynamicMargin
|
|
spacing: 0
|
|
Layout.margins: 0
|
|
|
|
ColumnLayout {
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
width: app.width - dynamicMargin < dynamicWidth ? app.width - dynamicMargin : dynamicWidth
|
|
spacing: 8
|
|
|
|
RowLayout {
|
|
Label {
|
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
|
text: sectionTitle
|
|
color: Material.primary
|
|
font.pixelSize: 14
|
|
font.weight: Font.Medium
|
|
topPadding: 8
|
|
bottomPadding: 8
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
|
|
id: inner_space
|
|
}
|
|
}
|