diff options
Diffstat (limited to 'desktop/modules/deckit')
| -rw-r--r-- | desktop/modules/deckit/DeckItDashboardModule.qml | 6 | ||||
| -rw-r--r-- | desktop/modules/deckit/DeckItDashboardPage.qml | 36 | ||||
| -rw-r--r-- | desktop/modules/deckit/Modules.js | 2 |
3 files changed, 5 insertions, 39 deletions
diff --git a/desktop/modules/deckit/DeckItDashboardModule.qml b/desktop/modules/deckit/DeckItDashboardModule.qml index ca033f8..1664976 100644 --- a/desktop/modules/deckit/DeckItDashboardModule.qml +++ b/desktop/modules/deckit/DeckItDashboardModule.qml @@ -12,7 +12,7 @@ import QtQuick import "../.." -// deck-it's dashboard: its panels, its action icons and the hardware it reads. +// deck-it's dashboard: its panels, the tablet screen and the hardware it reads. Module { name: "deckit-dashboard" label: "Dashboard" @@ -21,10 +21,10 @@ Module { settings: true group: "deck-it" dirty: DeckIt.store.dirty - keywords: ["deck-it", "tablet", "dashboard", "modules", "panels", "actions", "icons", "hardware", + keywords: ["deck-it", "tablet", "dashboard", "modules", "panels", "lock", "hardware", "network", "battery", "cpu", "gpu", "sensor", "dim", "brightness", "backlight"] readonly property var fields: [ - ["modules", "", "Dashboard parts"], ["dashboard", "actions", "Dashboard actions"], + ["modules", "", "Dashboard parts"], ["tablet", "dim_after", "Dim after"], ["tablet", "dim_brightness", "Dim brightness"], ["hardware", "net", "Network interface"], ["hardware", "battery", "Battery"], ["hardware", "cpu_sensor", "CPU sensor"], ["hardware", "gpu", "GPU"], diff --git a/desktop/modules/deckit/DeckItDashboardPage.qml b/desktop/modules/deckit/DeckItDashboardPage.qml index 14aba95..8a1f7b6 100644 --- a/desktop/modules/deckit/DeckItDashboardPage.qml +++ b/desktop/modules/deckit/DeckItDashboardPage.qml @@ -14,22 +14,13 @@ import "../.." import "../qtmaildir" import "Modules.js" as Modules -// deck-it's Dashboard page: its panels, its action icons, the hardware it reads. +// deck-it's Dashboard page: its panels, the tablet screen, the hardware it reads. Column { id: col spacing: 6 readonly property var st: DeckIt.store function def(section, key) { return col.st.fallback(section, key); } - // The dashboard's action icons: every id deck-it knows is in the - // defaults' list; the file keeps the ones switched on, in that order. - readonly property var allActions: col.def("dashboard", "actions") ?? [] - readonly property var actions: col.st.value("dashboard", "actions") ?? col.allActions - function setAction(id, on) { - col.st.put("dashboard", "actions", - col.allActions.filter(a => a === id ? on : col.actions.includes(a))); - } - Small { visible: DeckIt.defaultsError !== ""; color: Theme.red; text: DeckIt.defaultsError } Heading { objectName: "modules/"; text: "Dashboard parts" } @@ -43,31 +34,6 @@ Column { } } - Heading { objectName: "dashboard/actions"; text: "Dashboard actions" } - Small { text: "Icon buttons at the bottom of the tablet's dashboard." } - Repeater { - model: col.allActions - Item { - id: act - required property string modelData - width: col.width - height: 34 - Text { - id: actLabel - anchors { left: parent.left; verticalCenter: parent.verticalCenter } - width: 160 - text: act.modelData - color: Theme.subtext - font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 3 } - } - Switch { - anchors { left: actLabel.right; leftMargin: 8; verticalCenter: parent.verticalCenter } - checked: col.actions.includes(act.modelData) - onToggled: on => col.setAction(act.modelData, on) - } - } - } - Heading { text: "Tablet screen" } Setting { store: col.st; section: "tablet"; key: "dim_after"; label: "Dim after"; kind: "int"; min: 0; max: 3600 placeholder: col.st.placeholder("tablet", "dim_after") diff --git a/desktop/modules/deckit/Modules.js b/desktop/modules/deckit/Modules.js index 7c345cf..40a2757 100644 --- a/desktop/modules/deckit/Modules.js +++ b/desktop/modules/deckit/Modules.js @@ -16,7 +16,7 @@ // lands with the Dashboard ones until it is listed here. var TABS = ["windows", "obs", "k1c", "assistant", "vm", "xbox"]; var NAMES = { stats: "System", music: "Music", llm: "LLM usage", tablet: "Tablet", - sbbuilder: "Build VM", actions: "Action icons", windows: "Windows", + sbbuilder: "Build VM", actions: "Sleep with PC lock", windows: "Windows", obs: "OBS", k1c: "K1C printer", assistant: "Assistant", vm: "VMs", xbox: "Xbox" }; function tabs(all) { return all.filter(m => TABS.includes(m)); } |
