diff --git a/clients/aurorae/src/aurorae.cpp b/clients/aurorae/src/aurorae.cpp index c1ef3e8583..fb0ce347d3 100644 --- a/clients/aurorae/src/aurorae.cpp +++ b/clients/aurorae/src/aurorae.cpp @@ -355,6 +355,10 @@ void AuroraeClient::padding(int &left, int &right, int &top, int &bottom) const left = right = top = bottom = 0; return; } + if (maximizeMode() == MaximizeFull && !options()->moveResizeMaximizedWindows()) { + left = right = top = bottom = 0; + return; + } left = m_item->property("paddingLeft").toInt(); right = m_item->property("paddingRight").toInt(); top = m_item->property("paddingTop").toInt(); diff --git a/clients/aurorae/src/qml/AuroraeButtonGroup.qml b/clients/aurorae/src/qml/AuroraeButtonGroup.qml index 89916f07f4..7c1bebe318 100644 --- a/clients/aurorae/src/qml/AuroraeButtonGroup.qml +++ b/clients/aurorae/src/qml/AuroraeButtonGroup.qml @@ -50,7 +50,7 @@ Item { } anchors { top: parent.top - topMargin: (decoration.maximized ? auroraeTheme.titleEdgeTopMaximized : auroraeTheme.titleEdgeTop) + root.paddingTop + auroraeTheme.buttonMarginTop + topMargin: (decoration.maximized ? auroraeTheme.titleEdgeTopMaximized : auroraeTheme.titleEdgeTop + root.paddingTop) + auroraeTheme.buttonMarginTop } Behavior on anchors.topMargin { NumberAnimation { diff --git a/clients/aurorae/src/qml/aurorae.qml b/clients/aurorae/src/qml/aurorae.qml index 841df1ad9d..9242bf2441 100644 --- a/clients/aurorae/src/qml/aurorae.qml +++ b/clients/aurorae/src/qml/aurorae.qml @@ -52,6 +52,7 @@ Decoration { imagePath: backgroundSvg.imagePath prefix: "decoration" opacity: shown ? 1 : 0 + enabledBorders: decoration.maximized ? PlasmaCore.FrameSvg.NoBorder : PlasmaCore.FrameSvg.TopBorder | PlasmaCore.FrameSvg.BottomBorder | PlasmaCore.FrameSvg.LeftBorder | PlasmaCore.FrameSvg.RightBorder Behavior on opacity { NumberAnimation { duration: auroraeTheme.animationTime @@ -64,6 +65,7 @@ Decoration { imagePath: backgroundSvg.imagePath prefix: "decoration-inactive" opacity: (!decoration.active && backgroundSvg.supportsInactive) ? 1 : 0 + enabledBorders: decoration.maximized ? PlasmaCore.FrameSvg.NoBorder : PlasmaCore.FrameSvg.TopBorder | PlasmaCore.FrameSvg.BottomBorder | PlasmaCore.FrameSvg.LeftBorder | PlasmaCore.FrameSvg.RightBorder Behavior on opacity { NumberAnimation { duration: auroraeTheme.animationTime @@ -85,6 +87,7 @@ Decoration { prefix: "decoration-maximized" height: parent.borderTopMaximized opacity: shown ? 1 : 0 + enabledBorders: PlasmaCore.FrameSvg.NoBorder Behavior on opacity { NumberAnimation { duration: auroraeTheme.animationTime @@ -105,6 +108,7 @@ Decoration { prefix: "decoration-maximized-inactive" height: parent.borderTopMaximized opacity: (!decoration.active && decoration.maximized && backgroundSvg.supportsMaximizedInactive) ? 1 : 0 + enabledBorders: PlasmaCore.FrameSvg.NoBorder Behavior on opacity { NumberAnimation { duration: auroraeTheme.animationTime @@ -117,7 +121,7 @@ Decoration { width: childrenRect.width anchors { left: parent.left - leftMargin: (decoration.maximized ? auroraeTheme.titleEdgeLeftMaximized : auroraeTheme.titleEdgeLeft) + root.paddingLeft + leftMargin: decoration.maximized ? auroraeTheme.titleEdgeLeftMaximized : (auroraeTheme.titleEdgeLeft + root.paddingLeft) } Behavior on anchors.leftMargin { NumberAnimation { @@ -131,7 +135,7 @@ Decoration { width: childrenRect.width anchors { right: parent.right - rightMargin: (decoration.maximized ? auroraeTheme.titleEdgeRightMaximized : auroraeTheme.titleEdgeRight) + root.paddingRight + rightMargin: decoration.maximized ? auroraeTheme.titleEdgeRightMaximized : (auroraeTheme.titleEdgeRight + root.paddingRight) } Behavior on anchors.rightMargin { NumberAnimation { @@ -153,7 +157,7 @@ Decoration { left: leftButtonGroup.right right: rightButtonGroup.left top: root.top - topMargin: (decoration.maximized ? auroraeTheme.titleEdgeTopMaximized : auroraeTheme.titleEdgeTop) + root.paddingTop + topMargin: decoration.maximized ? auroraeTheme.titleEdgeTopMaximized : (auroraeTheme.titleEdgeTop + root.paddingTop) leftMargin: auroraeTheme.titleBorderLeft rightMargin: auroraeTheme.titleBorderRight }