1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-02 02:22:06 -04:00

arcExtender(Launcher): Extend launcher by default

This commit is contained in:
purian23
2026-05-01 19:18:10 -04:00
parent 06674c9dac
commit 7de70b3172
2 changed files with 5 additions and 4 deletions

View File

@@ -191,6 +191,7 @@ Item {
return Theme.snap(Math.max(alignedHeight, screenHeight - _frameEdgeInset("bottom") - alignedY), dpr);
return alignedHeight;
}
readonly property real contentSurfaceHeight: launcherArcExtenderActive ? _connectedChromeHeight : alignedHeight
// For directional/depth: window extends from screen top (content slides within)
// For standard: small window tightly around the modal + shadow padding
@@ -210,7 +211,7 @@ Item {
}
// Where the content container sits inside the content window
readonly property real _ccX: shadowPad
readonly property real _ccY: launcherArcExtenderActive ? Theme.snap(alignedY - _cwMarginTop, dpr) : (_needsExtendedWindow ? alignedY : shadowPad)
readonly property real _ccY: launcherArcExtenderActive ? 0 : (_needsExtendedWindow ? alignedY : shadowPad)
signal dialogClosed
@@ -704,7 +705,7 @@ Item {
x: contentContainer.x + contentWrapper.x
y: contentContainer.y + contentWrapper.y
width: root.alignedWidth
height: root.alignedHeight
height: root.contentSurfaceHeight
}
Item {
@@ -715,7 +716,7 @@ Item {
x: root._ccX
y: root._ccY
width: root.alignedWidth
height: root.alignedHeight
height: root.contentSurfaceHeight
readonly property int dockEdge: typeof SettingsData !== "undefined" ? SettingsData.dockPosition : 1
readonly property bool dockTop: dockEdge === 0

View File

@@ -326,7 +326,7 @@ Item {
settingKey: "frameLauncherArcExtender"
tags: ["frame", "connected", "launcher", "arc", "extender", "center"]
text: I18n.tr("Arc Extender")
description: I18n.tr("Extend the launcher surface to the screen center")
description: I18n.tr("Use the extended surface for launcher content")
checked: SettingsData.frameLauncherArcExtender
onToggled: checked => SettingsData.set("frameLauncherArcExtender", checked)
}