import QtQuick import qs.HyprChrome.Widgets.Polkit // Offscreen render of the polkit prompt with the Proton Pass panel expanded, // more vaults than fit (Work, selected, sits in the open overflow menu), the // password revealed and a failed fetch under the // field. Credentials are deliberately out of order, to show the title sort. // // ./tools/quickshell-preview/render.sh \ // tests/PolkitPromptVaultHeadless.qml \ // .artifacts/quickshell-preview/polkit-prompt-vault.png 560 560 PolkitPromptContent { width: 520 message: "Authentication is required to install or remove software" actionId: "org.freedesktop.packagekit.package-install" showIcon: false identities: [{ id: "1000", displayName: "darman", isGroup: false }] responseRequired: true inputPrompt: "Password:" response: "hunter2" revealed: true credentialsEnabled: true credentials: [ { title: "router admin", vault: "HomeLab" }, { title: "proton.me", vault: "Personal" }, { title: "darman@terra", vault: "HomeLab" }, { title: "netcup", vault: "Work" }, { title: "Darman@mars", vault: "HomeLab" }, { title: "github.com", vault: "Personal" }, { title: "root@terra", vault: "HomeLab" }, { title: "grandma wifi", vault: "Family" }, { title: "old forum", vault: "Archive" }, { title: "billing portal", vault: "Clients" }, { title: "ci deploy key", vault: "Shared Infrastructure" }, { title: "vpn", vault: "Work" } ] fetchStatus: "THAT ITEM HAS NO PASSWORD" Component.onCompleted: { openPicker(); pickerIndex = 1; vaultFilter = "Work"; overflowMenuOpen = true; } }