diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-07 12:08:47 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-07 12:08:47 +0100 |
| commit | ed335e23c1fbd66289e0c8de33235107c9bc3a7e (patch) | |
| tree | a2b700ced004dd29437c2d50f7b9ad12dde65502 /desktop/modules | |
| parent | 2e63c7fef7ddc08719d207e54c3c974a62d84af1 (diff) | |
| download | quickshell-ed335e23c1fbd66289e0c8de33235107c9bc3a7e.tar.gz quickshell-ed335e23c1fbd66289e0c8de33235107c9bc3a7e.zip | |
sonix: the boot logo page in the settings window
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules')
| -rw-r--r-- | desktop/modules/sonix/BootlogoModule.qml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/desktop/modules/sonix/BootlogoModule.qml b/desktop/modules/sonix/BootlogoModule.qml new file mode 100644 index 0000000..5f744d1 --- /dev/null +++ b/desktop/modules/sonix/BootlogoModule.qml @@ -0,0 +1,54 @@ +// Copyright (C) 2026 Danilo M. <danix@danix.xyz> +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +import QtQuick +import "../.." + +// The Sonix boot logo editor, in the settings window under Appearance. +// No draft: it edits no file. Save and Upload are in the header. +Module { + name: "bootlogo" + label: "Boot logo" + icon: String.fromCodePoint(0xF075A) // md-music + settings: true + group: "Appearance" + keywords: ["boot", "logo", "sonix", "hiby", "splash", "player"] + + page: Component { + Page { + title: "Boot logo" + actions: Component { + Row { + spacing: 8 + Text { + anchors.verticalCenter: parent.verticalCenter + width: Math.min(implicitWidth, 520) + elide: Text.ElideRight + text: tab.status + font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 4 } + color: tab.statusError ? Theme.yellow : Theme.green + } + Button { + text: tab.busy && !tab.waiting ? "Saving…" : "Save" + enabled: tab.canSave + onClicked: tab.save(null) + } + Button { + text: tab.waiting ? "Waiting for Wi-Fi transfer…" : "Upload" + enabled: tab.canSave && Sonix.present && !tab.waiting + onClicked: tab.upload() + } + } + } + BootlogoTab { id: tab } + } + } +} |
