mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-03 02:52:07 -04:00
arcExtender(Launcher): Extend launcher by default
This commit is contained in:
@@ -191,6 +191,7 @@ Item {
|
|||||||
return Theme.snap(Math.max(alignedHeight, screenHeight - _frameEdgeInset("bottom") - alignedY), dpr);
|
return Theme.snap(Math.max(alignedHeight, screenHeight - _frameEdgeInset("bottom") - alignedY), dpr);
|
||||||
return alignedHeight;
|
return alignedHeight;
|
||||||
}
|
}
|
||||||
|
readonly property real contentSurfaceHeight: launcherArcExtenderActive ? _connectedChromeHeight : alignedHeight
|
||||||
|
|
||||||
// For directional/depth: window extends from screen top (content slides within)
|
// For directional/depth: window extends from screen top (content slides within)
|
||||||
// For standard: small window tightly around the modal + shadow padding
|
// For standard: small window tightly around the modal + shadow padding
|
||||||
@@ -210,7 +211,7 @@ Item {
|
|||||||
}
|
}
|
||||||
// Where the content container sits inside the content window
|
// Where the content container sits inside the content window
|
||||||
readonly property real _ccX: shadowPad
|
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
|
signal dialogClosed
|
||||||
|
|
||||||
@@ -704,7 +705,7 @@ Item {
|
|||||||
x: contentContainer.x + contentWrapper.x
|
x: contentContainer.x + contentWrapper.x
|
||||||
y: contentContainer.y + contentWrapper.y
|
y: contentContainer.y + contentWrapper.y
|
||||||
width: root.alignedWidth
|
width: root.alignedWidth
|
||||||
height: root.alignedHeight
|
height: root.contentSurfaceHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
@@ -715,7 +716,7 @@ Item {
|
|||||||
x: root._ccX
|
x: root._ccX
|
||||||
y: root._ccY
|
y: root._ccY
|
||||||
width: root.alignedWidth
|
width: root.alignedWidth
|
||||||
height: root.alignedHeight
|
height: root.contentSurfaceHeight
|
||||||
|
|
||||||
readonly property int dockEdge: typeof SettingsData !== "undefined" ? SettingsData.dockPosition : 1
|
readonly property int dockEdge: typeof SettingsData !== "undefined" ? SettingsData.dockPosition : 1
|
||||||
readonly property bool dockTop: dockEdge === 0
|
readonly property bool dockTop: dockEdge === 0
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ Item {
|
|||||||
settingKey: "frameLauncherArcExtender"
|
settingKey: "frameLauncherArcExtender"
|
||||||
tags: ["frame", "connected", "launcher", "arc", "extender", "center"]
|
tags: ["frame", "connected", "launcher", "arc", "extender", "center"]
|
||||||
text: I18n.tr("Arc Extender")
|
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
|
checked: SettingsData.frameLauncherArcExtender
|
||||||
onToggled: checked => SettingsData.set("frameLauncherArcExtender", checked)
|
onToggled: checked => SettingsData.set("frameLauncherArcExtender", checked)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user