Adjust background

This commit is contained in:
cutefishd 2021-04-05 03:26:45 +08:00
parent 337606b6e3
commit 043358cd5d

View file

@ -10,7 +10,6 @@ Item {
id: root id: root
visible: true visible: true
property color borderColor: Meui.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.1) : Qt.rgba(0, 0, 0, 0.05)
property bool isHorizontal: Settings.direction === DockSettings.Bottom property bool isHorizontal: Settings.direction === DockSettings.Bottom
property real windowRadius: isHorizontal ? root.height * 0.24 : root.width * 0.24 property real windowRadius: isHorizontal ? root.height * 0.24 : root.width * 0.24
@ -19,11 +18,11 @@ Item {
enabled: true enabled: true
} }
Meui.WindowShadow { // Meui.WindowShadow {
view: mainWindow // view: mainWindow
geometry: Qt.rect(root.x, root.y, root.width, root.height) // geometry: Qt.rect(root.x, root.y, root.width, root.height)
radius: _background.radius // radius: _background.radius
} // }
Meui.WindowBlur { Meui.WindowBlur {
view: mainWindow view: mainWindow
@ -38,7 +37,7 @@ Item {
anchors.fill: parent anchors.fill: parent
radius: windowRadius radius: windowRadius
color: Meui.Theme.backgroundColor color: Meui.Theme.backgroundColor
opacity: Meui.Theme.darkMode ? 0.3 : 0.5 opacity: 0.4
Behavior on opacity { Behavior on opacity {
NumberAnimation { NumberAnimation {
@ -61,7 +60,7 @@ Item {
radius: windowRadius radius: windowRadius
visible: windowRadius visible: windowRadius
border.width: 1 border.width: 1
border.color: Qt.rgba(0, 0, 0, 0.5) border.color: Qt.rgba(0, 0, 0, 0.2)
antialiasing: true antialiasing: true
smooth: true smooth: true
} }
@ -73,7 +72,7 @@ Item {
visible: windowRadius visible: windowRadius
color: "transparent" color: "transparent"
border.width: 1 border.width: 1
border.color: Qt.rgba(255, 255, 255, 0.3) border.color: Qt.rgba(255, 255, 255, 0.2)
antialiasing: true antialiasing: true
smooth: true smooth: true
} }