Apply suggestions

This commit is contained in:
Devin Lin 2020-09-11 22:01:28 -04:00
parent 43603ed2ae
commit e6b055a915
2 changed files with 6 additions and 8 deletions

View file

@ -19,9 +19,7 @@
import QtQuick 2.6
import QtQuick.Layouts 1.4
import QtQuick.Controls 2.4 as QQC2
import QtGraphicalEffects 1.0
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami 2.12 as Kirigami
@ -41,12 +39,12 @@ QQC2.Control {
color: Kirigami.ColorUtils.adjustColor(PlasmaCore.ColorScope.backgroundColor, {"alpha": 0.85*255})
anchors {
fill: parent
leftMargin: units.smallSpacing
rightMargin: units.smallSpacing
topMargin: units.smallSpacing
bottomMargin: units.smallSpacing
leftMargin: PlasmaCore.Units.smallSpacing
rightMargin: PlasmaCore.Units.smallSpacing
topMargin: PlasmaCore.Units.smallSpacing
bottomMargin: PlasmaCore.Units.smallSpacing
}
radius: units.smallSpacing
radius: PlasmaCore.Units.smallSpacing
}
}
}

View file

@ -126,7 +126,7 @@ NanoShell.FullScreenOverlay {
right: parent.right
bottom: parent.bottom
}
height: parent.height - headerHeight
height: parent.height - headerHeight // don't layer on top panel indicators (area is darkened separately)
color: "black"
opacity: 0.6 * Math.min(1, offset/contentArea.height)