From ed335e23c1fbd66289e0c8de33235107c9bc3a7e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 7 Nov 2026 12:08:47 +0100 Subject: sonix: the boot logo page in the settings window Co-Authored-By: Claude Opus 5.5 --- desktop/modules/sonix/BootlogoModule.qml | 54 ++++++++++++++++++++++++++++++++ desktop/shell.qml | 1 + 2 files changed, 55 insertions(+) create mode 100644 desktop/modules/sonix/BootlogoModule.qml (limited to 'desktop') 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. +// +// 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 } + } + } +} diff --git a/desktop/shell.qml b/desktop/shell.qml index 7fc293b..091484f 100644 --- a/desktop/shell.qml +++ b/desktop/shell.qml @@ -98,6 +98,7 @@ ShellRoot { UdtModule {}, IconsModule {}, FontsModule {}, + BootlogoModule {}, SunsetModule {}, IdleModule {}, NotificationsModule {}, -- cgit v1.2.3