aboutsummaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/modules/sonix/BootlogoModule.qml54
-rw-r--r--desktop/shell.qml1
2 files changed, 55 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 }
+ }
+ }
+}
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 {},