homescreen: Fix bottom margin in gesture mode

This commit is contained in:
Devin Lin 2022-12-10 22:05:25 -05:00
parent 1c82b58c11
commit c873dffce8
2 changed files with 2 additions and 13 deletions

View file

@ -69,9 +69,6 @@ PlasmaCore.ColorScope {
opacity: opacityValue
spacing: 0
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
top: mediaWidget.bottom
topMargin: 0
@ -114,9 +111,6 @@ PlasmaCore.ColorScope {
verticalAlignment: Qt.AlignVCenter
opacity: columnLayout.opacity
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
left: parent.left
top: parent.top
@ -136,9 +130,6 @@ PlasmaCore.ColorScope {
color: PlasmaCore.ColorScope.disabledTextColor
opacity: columnLayout.opacity
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
left: parent.left
top: clock.bottom
@ -158,9 +149,6 @@ PlasmaCore.ColorScope {
y: isOnLargeScreen ? date.y - height + date.implicitHeight : date.y + date.implicitHeight + columnLayout.anchors.margins / 2
opacity: columnLayout.opacity
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
visible: opacity > 0.05
anchors {
right: quickSettings.left

View file

@ -56,7 +56,8 @@ Item {
function evaluateMargins() {
topMargin = plasmoid.availableScreenRect.y
bottomMargin = root.height - (plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height)
// add a specific check for the nav panel for now, since the gesture mode still technically has height
bottomMargin = MobileShell.MobileShellSettings.navigationPanelEnabled ? root.height - (plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height) : 0;
leftMargin = plasmoid.availableScreenRect.x
rightMargin = root.width - (plasmoid.availableScreenRect.x + plasmoid.availableScreenRect.width)
}