From dd3e17cb9765f7643c8a5ccdfa36481618fa897a Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 20:14:04 +0100 Subject: feat(deckit): tabs and dashboard parts in separate lists deck-it's [modules] were one list mixing tabs and dashboard parts. The General page now lists the tabs (Windows, OBS, K1C printer, Assistant) and the Dashboard page the parts, each under a readable name; Modules.js holds the split. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/deckit/DeckItGeneralPage.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'desktop/modules/deckit/DeckItGeneralPage.qml') diff --git a/desktop/modules/deckit/DeckItGeneralPage.qml b/desktop/modules/deckit/DeckItGeneralPage.qml index 358574f..776099a 100644 --- a/desktop/modules/deckit/DeckItGeneralPage.qml +++ b/desktop/modules/deckit/DeckItGeneralPage.qml @@ -13,6 +13,7 @@ import Quickshell import QtQuick import "../.." import "../qtmaildir" +import "Modules.js" as Modules // deck-it's General page: the intro, Start, Display and Advanced. Every field // edits the draft of ~/.config/deck-it/config.toml shared by the four deck-it @@ -76,6 +77,17 @@ Column { Setting { store: col.st; section: "display"; key: "name"; label: "Output name" placeholder: col.st.placeholder("display", "name") } + Heading { objectName: "modules/tabs"; text: "Tabs" } + Small { text: "The tablet's tabs beside the Dashboard." } + Repeater { + model: Modules.tabs(Object.keys(col.def("modules") ?? {})) + BoolSetting { + required property string modelData + store: col.st; section: "modules"; key: modelData; label: Modules.name(modelData) + fallback: col.def("modules", modelData) ?? true + } + } + Heading { text: "Advanced" } Setting { store: col.st; section: "ports"; key: "command_center"; label: "Dashboard port"; kind: "int"; min: 1024; max: 65535 placeholder: col.st.placeholder("ports", "command_center"); hint: "On the tablet's localhost, through adb reverse." } -- cgit v1.2.3