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 2.6
import QtQuick.Layouts 1.4 import QtQuick.Layouts 1.4
import QtQuick.Controls 2.4 as QQC2 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.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami 2.12 as Kirigami 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}) color: Kirigami.ColorUtils.adjustColor(PlasmaCore.ColorScope.backgroundColor, {"alpha": 0.85*255})
anchors { anchors {
fill: parent fill: parent
leftMargin: units.smallSpacing leftMargin: PlasmaCore.Units.smallSpacing
rightMargin: units.smallSpacing rightMargin: PlasmaCore.Units.smallSpacing
topMargin: units.smallSpacing topMargin: PlasmaCore.Units.smallSpacing
bottomMargin: units.smallSpacing bottomMargin: PlasmaCore.Units.smallSpacing
} }
radius: units.smallSpacing radius: PlasmaCore.Units.smallSpacing
} }
} }
} }

View file

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