make Plasma indicator screenEdgeMargin aware

pull/11/head
Michail Vourlakos 5 years ago
parent d82ac63417
commit 08863d1116

@ -185,6 +185,11 @@ Item {
Loader {
anchors.fill: parent
anchors.topMargin: plasmoid.location === PlasmaCore.Types.TopEdge ? indicator.screenEdgeMargin : 0
anchors.bottomMargin: plasmoid.location === PlasmaCore.Types.BottomEdge ? indicator.screenEdgeMargin : 0
anchors.leftMargin: plasmoid.location === PlasmaCore.Types.LeftEdge ? indicator.screenEdgeMargin : 0
anchors.rightMargin: plasmoid.location === PlasmaCore.Types.RightEdge ? indicator.screenEdgeMargin : 0
visible: !indicator.isApplet && indicator.isGroup
sourceComponent: Item{
anchors.fill: parent

@ -47,6 +47,11 @@ LatteComponents.IndicatorItem {
Loader{
id: backLayer
anchors.fill: parent
anchors.topMargin: plasmoid.location === PlasmaCore.Types.TopEdge ? indicator.screenEdgeMargin : 0
anchors.bottomMargin: plasmoid.location === PlasmaCore.Types.BottomEdge ? indicator.screenEdgeMargin : 0
anchors.leftMargin: plasmoid.location === PlasmaCore.Types.LeftEdge ? indicator.screenEdgeMargin : 0
anchors.rightMargin: plasmoid.location === PlasmaCore.Types.RightEdge ? indicator.screenEdgeMargin : 0
active: level.isBackground && !indicator.isEmptySpace
sourceComponent: BackLayer{}
}
@ -54,7 +59,7 @@ LatteComponents.IndicatorItem {
/* progress overlay for BackLayer*/
/* it is not added in the BackLayer because the BackLayer is rotated in some cases*/
Loader {
anchors.fill: parent
anchors.fill: backLayer
asynchronous: true
active: level.isBackground && indicator.progressVisible
sourceComponent: Item {

Loading…
Cancel
Save