1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

feat: AppsDock Widget on the Dankbar

- Pinnable apps independent from the main dock
- Drag & Drop support
This commit is contained in:
purian23
2026-01-23 11:49:45 -05:00
parent 3936a516f8
commit 808ee66e11
8 changed files with 1354 additions and 2 deletions

View File

@@ -302,6 +302,7 @@ Item {
"workspaceSwitcher": workspaceSwitcherComponent,
"focusedWindow": focusedWindowComponent,
"runningApps": runningAppsComponent,
"appsDock": appsDockComponent,
"clock": clockComponent,
"music": mediaComponent,
"weather": weatherComponent,
@@ -343,6 +344,7 @@ Item {
"workspaceSwitcherComponent": workspaceSwitcherComponent,
"focusedWindowComponent": focusedWindowComponent,
"runningAppsComponent": runningAppsComponent,
"appsDockComponent": appsDockComponent,
"clockComponent": clockComponent,
"mediaComponent": mediaComponent,
"weatherComponent": weatherComponent,
@@ -660,6 +662,21 @@ Item {
}
}
Component {
id: appsDockComponent
AppsDock {
widgetThickness: barWindow.widgetThickness
barThickness: barWindow.effectiveBarThickness
barSpacing: barConfig?.spacing ?? 4
section: topBarContent.getWidgetSection(parent)
parentScreen: barWindow.screen
topBar: topBarContent
barConfig: topBarContent.barConfig
isAutoHideBar: topBarContent.barConfig?.autoHide ?? false
}
}
Component {
id: clockComponent