Fix window shadow

pull/3/head
cutefishd 5 years ago
parent 1a081b30d7
commit d3588be2b8

@ -166,7 +166,6 @@ Window {
// Window shadows
FishUI.WindowShadow {
view: root
geometry: Qt.rect(root.x, root.y, root.width, root.height)
radius: _background.radius
}
@ -210,7 +209,8 @@ Window {
ColumnLayout {
anchors.fill: parent
anchors.margins: !isMaximized && !isFullScreen ? 1 : 0
// anchors.margins: !isMaximized && !isFullScreen ? 1 : 0
anchors.margins: 0
spacing: 0
Item {

@ -271,7 +271,7 @@ QMargins WindowShadow::shadowMargins(TileSet shadowTiles) const
QRect boxRect(QPoint(0, 0), boxSize);
boxRect.moveCenter(shadowRect.center());
int Shadow_Overlap = 3;
int Shadow_Overlap = m_radius / 2;
QMargins margins(
boxRect.left() - shadowRect.left() - Shadow_Overlap - params.offset.x(),
boxRect.top() - shadowRect.top() - Shadow_Overlap - params.offset.y(),

Loading…
Cancel
Save