mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
launcher v2: spacing adjustments
This commit is contained in:
@@ -390,7 +390,7 @@ FocusScope {
|
|||||||
anchors.rightMargin: Theme.spacingM
|
anchors.rightMargin: Theme.spacingM
|
||||||
anchors.topMargin: Theme.spacingM
|
anchors.topMargin: Theme.spacingM
|
||||||
anchors.bottomMargin: Theme.spacingXS
|
anchors.bottomMargin: Theme.spacingXS
|
||||||
spacing: Theme.spacingM
|
spacing: Theme.spacingXS
|
||||||
clip: false
|
clip: false
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
@@ -484,7 +484,7 @@ FocusScope {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height - 56 - actionPanel.height - Theme.spacingM * 2
|
height: parent.height - 56 - actionPanel.height - Theme.spacingM - Theme.spacingXS
|
||||||
opacity: root.parentModal?.isClosing ? 0 : 1
|
opacity: root.parentModal?.isClosing ? 0 : 1
|
||||||
|
|
||||||
ResultsList {
|
ResultsList {
|
||||||
|
|||||||
@@ -68,11 +68,11 @@ Item {
|
|||||||
|
|
||||||
var targetY = sectionY + 32 + itemY;
|
var targetY = sectionY + 32 + itemY;
|
||||||
var targetBottom = targetY + itemHeight;
|
var targetBottom = targetY + itemHeight;
|
||||||
var stickyHeight = stickyHeader.visible ? 32 : 0;
|
var stickyHeight = mainFlickable.contentY > 0 ? 32 : 0;
|
||||||
|
|
||||||
var shadowPadding = 24;
|
var shadowPadding = 24;
|
||||||
if (targetY < mainFlickable.contentY + stickyHeight) {
|
if (targetY < mainFlickable.contentY + stickyHeight) {
|
||||||
mainFlickable.contentY = Math.max(0, targetY - stickyHeight);
|
mainFlickable.contentY = Math.max(0, targetY - 32);
|
||||||
} else if (targetBottom > mainFlickable.contentY + mainFlickable.height - shadowPadding) {
|
} else if (targetBottom > mainFlickable.contentY + mainFlickable.height - shadowPadding) {
|
||||||
mainFlickable.contentY = Math.min(mainFlickable.contentHeight - mainFlickable.height, targetBottom - mainFlickable.height + shadowPadding);
|
mainFlickable.contentY = Math.min(mainFlickable.contentHeight - mainFlickable.height, targetBottom - mainFlickable.height + shadowPadding);
|
||||||
}
|
}
|
||||||
@@ -385,7 +385,7 @@ Item {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
var scrollY = mainFlickable.contentY;
|
var scrollY = mainFlickable.contentY;
|
||||||
if (scrollY <= 32)
|
if (scrollY <= 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var y = 0;
|
var y = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user