diff --git a/workstation-setup/src/Main.qml b/workstation-setup/src/Main.qml index ebbacc8..a4899e2 100644 --- a/workstation-setup/src/Main.qml +++ b/workstation-setup/src/Main.qml @@ -341,17 +341,24 @@ Kirigami.ApplicationWindow { ColumnLayout { Layout.fillWidth: true + Layout.alignment: Qt.AlignVCenter spacing: 2 + Controls.Label { + Layout.fillWidth: true text: modelData.title color: "white" font.pixelSize: 14 font.weight: index === root.currentStep ? Font.DemiBold : Font.Medium + horizontalAlignment: Text.AlignLeft } + Controls.Label { + Layout.fillWidth: true text: modelData.subtitle color: "#b9cee5" font.pixelSize: 11 + horizontalAlignment: Text.AlignLeft } } } @@ -597,8 +604,40 @@ Kirigami.ApplicationWindow { } InfoBox { - iconText: "☝" - text: "Saisissez le mot de passe que vous venez de choisir et le PIN de la YubiKey. Touchez la clé à chaque fois qu'elle clignote pendant l'enrôlement. Aucune recovery key n'est demandée dans ce workflow." + iconText: "🔐" + text: "Saisissez le mot de passe que vous venez de choisir et le PIN de la YubiKey. Aucune recovery key n'est demandée dans ce workflow." + } + + Rectangle { + Layout.fillWidth: true + implicitHeight: touchInstruction.implicitHeight + 32 + radius: 12 + color: "#fffbeb" + border.width: 2 + border.color: "#f59e0b" + + RowLayout { + anchors.fill: parent + anchors.margins: 16 + spacing: 14 + + Controls.Label { + text: "☝" + font.pixelSize: 25 + Layout.alignment: Qt.AlignTop + } + + Controls.Label { + id: touchInstruction + Layout.fillWidth: true + text: "IMPORTANT : après avoir cliqué sur « Associer la YubiKey », surveillez la clé. Elle peut clignoter plusieurs fois. Touchez-la à CHAQUE clignotement jusqu'à la fin de l'association." + wrapMode: Text.WordWrap + color: "#92400e" + font.pixelSize: 14 + font.weight: Font.DemiBold + lineHeight: 1.25 + } + } } Item { Layout.preferredHeight: 8 } diff --git a/workstation-setup/src/main.cpp b/workstation-setup/src/main.cpp index 33f5ae5..bf5e851 100644 --- a/workstation-setup/src/main.cpp +++ b/workstation-setup/src/main.cpp @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) QGuiApplication::setOrganizationName(QStringLiteral("Raspot")); QGuiApplication::setOrganizationDomain(QStringLiteral("raspot.in")); QGuiApplication::setApplicationName(QStringLiteral("NixOS Workstations Setup")); - QGuiApplication::setApplicationVersion(QStringLiteral("1.8.3")); + QGuiApplication::setApplicationVersion(QStringLiteral("1.8.4")); QGuiApplication::setDesktopFileName(QStringLiteral("org.raspot.nixosworkstations.setup")); QCommandLineParser parser;