Custom buttons: WIP support for left/right/middle click
This commit is contained in:
parent
1f919e4469
commit
17944211d5
5 changed files with 75 additions and 60 deletions
|
|
@ -190,14 +190,6 @@ NBox {
|
|||
"widgetId": modelData.id,
|
||||
"parent": Overlay.overlay
|
||||
})
|
||||
// })
|
||||
|
||||
// var dialog = widgetSettingsDialog.createObject(root, {
|
||||
// widgetIndex: index,
|
||||
// widgetData: modelData,
|
||||
// widgetId: modelData.id,
|
||||
// parent: Overlay.overlay
|
||||
// })
|
||||
dialog.open()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ Popup {
|
|||
NButton {
|
||||
text: "Save"
|
||||
onClicked: {
|
||||
|
||||
if (settingsLoader.item && settingsLoader.item.saveSettings) {
|
||||
var newSettings = settingsLoader.item.saveSettings()
|
||||
root.updateWidgetSettings(sectionId, settingsPopup.widgetIndex, newSettings)
|
||||
|
|
@ -128,7 +129,7 @@ Popup {
|
|||
id: iconInput
|
||||
Layout.fillWidth: true
|
||||
label: "Icon Name"
|
||||
description: "Use Material Icon names from the icon set"
|
||||
description: "Use Material Icon names from the icon set."
|
||||
text: settingsPopup.widgetData.icon || ""
|
||||
placeholderText: "Enter icon name (e.g., favorite, home, settings)"
|
||||
}
|
||||
|
|
@ -138,8 +139,8 @@ Popup {
|
|||
id: executeInput
|
||||
Layout.fillWidth: true
|
||||
label: "Execute Command"
|
||||
description: "Command or application to run when clicked"
|
||||
text: settingsPopup.widgetData.execute || ""
|
||||
description: "Command or application to run when clicked."
|
||||
text: settingsPopup.widgetData.leftClickExec || ""
|
||||
placeholderText: "Enter command to execute (app or custom script)"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue