diff --git a/qml/main.qml b/qml/main.qml index d77b8f9..9e77165 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -11,7 +11,7 @@ Item { visible: true property bool isHorizontal: Settings.direction === DockSettings.Bottom - property real windowRadius: isHorizontal ? root.height * 0.35 : root.width * 0.35 + property real windowRadius: isHorizontal ? root.height * 0.3 : root.width * 0.3 DropArea { anchors.fill: parent @@ -39,12 +39,12 @@ Item { } } - FishUI.WindowShadow { - view: mainWindow - geometry: Qt.rect(root.x, root.y, root.width, root.height) - strength: 1 - radius: root.windowRadius - } + FishUI.WindowShadow { + view: mainWindow + geometry: Qt.rect(root.x, root.y, root.width, root.height) + strength: 1 + radius: root.windowRadius + } FishUI.WindowBlur { view: mainWindow diff --git a/src/dockbackground.cpp b/src/dockbackground.cpp index f0aeb94..50ecaf6 100644 --- a/src/dockbackground.cpp +++ b/src/dockbackground.cpp @@ -26,7 +26,8 @@ DockBackground::DockBackground() : m_radius(0) { - + setSmooth(true); + setAntialiasing(true); } QColor DockBackground::color() const @@ -64,6 +65,7 @@ void DockBackground::paint(QPainter *painter) // Enable antialiasing. painter->setRenderHint(QPainter::Antialiasing); + painter->save(); QRectF rect = boundingRect(); QPainterPath path; @@ -97,6 +99,7 @@ void DockBackground::paint(QPainter *painter) painter->setPen(pen); painter->setBrush(Qt::NoBrush); painter->drawPath(path); + painter->restore(); } void DockBackground::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)