1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

feat: New Notepad widget w/Autosave

- IPC: qs -c dms ipc call notepad toggle
This commit is contained in:
purian23
2025-09-01 19:46:01 -04:00
parent 53698040ab
commit 437d077bd6
10 changed files with 642 additions and 4 deletions

View File

@@ -151,6 +151,12 @@ Item {
"text": "Keyboard Layout Name",
"description": "Displays the active keyboard layout and allows switching",
"icon": "keyboard",
}, {
"id": "notepadButton",
"text": "Notepad",
"description": "Quick access to notepad",
"icon": "assignment",
"enabled": true
}]
property var defaultLeftWidgets: [{
"id": "launcherButton",

View File

@@ -107,6 +107,12 @@ Item {
"description": "Access to notifications and do not disturb",
"icon": "notifications",
"enabled": true
}, {
"id": "notepadButton",
"text": "Notepad",
"description": "Quick access to notepad",
"icon": "assignment",
"enabled": true
}, {
"id": "battery",
"text": "Battery",
@@ -419,9 +425,9 @@ Item {
SettingsData.setTopBarCenterWidgets(defaultCenterWidgets)
if (!SettingsData.topBarRightWidgets)
SettingsData.setTopBarRightWidgets(
defaultRightWidgets)["left""center""right"].forEach(
sectionId => {
SettingsData.setTopBarRightWidgets(defaultRightWidgets)
["left", "center", "right"].forEach(sectionId => {
var widgets = []
if (sectionId === "left")
widgets = SettingsData.topBarLeftWidgets.slice()