mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 13:33:50 +03:00
make Plasma indicator screenEdgeMargin aware
This commit is contained in:
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…
Reference in New Issue
Block a user