Place Control Center tiles freely and host plugin widgets as tiles
Tiles keep the cell they are dropped in, so gaps stay where they are left; moving or resizing onto other tiles pushes those straight down. Enabled plugins with a Noctalia controlCenterWidget entry point are offered as tiles in edit mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
72a21c9363
commit
7f1189606c
14 files changed
+412
-157
No files matched your search
@@ -86,7 +86,7 @@ SettingsPage {
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Modules"
|
||||
description: "Drag modules to reorder them; the switch shows or hides each one. Resize tiles from Edit Controls in the Control Center"
|
||||
description: "The switch shows or hides each module. Move and resize tiles from Edit Controls in the Control Center; order here only decides where new tiles go"
|
||||
ColumnLayout {
|
||||
id: rows
|
||||
objectName: "controlModuleList"
|
||||
@@ -180,10 +180,10 @@ SettingsPage {
|
||||
visible: addRepeater.count > 0
|
||||
Repeater {
|
||||
id: addRepeater
|
||||
model: Object.keys(ControlRegistry.modules).filter(id => !ConfigService.data.controlCenter.modules.some(m => m.id === id))
|
||||
model: ControlRegistry.ids.filter(id => !ConfigService.data.controlCenter.modules.some(m => m.id === id))
|
||||
GlassButton {
|
||||
required property string modelData
|
||||
text: "+ " + ControlRegistry.modules[modelData].title
|
||||
text: "+ " + ControlRegistry.entry(modelData).title
|
||||
onClicked: ConfigService.setValue("controlCenter.modules", ConfigService.data.controlCenter.modules.concat([
|
||||
{
|
||||
id: modelData,
|
||||
|
||||
Reference in new issue
Block a user