lighten the borders
This commit is contained in:
parent
ffeb353b66
commit
890fb06a96
1 changed files with 16 additions and 48 deletions
64
qml/main.qml
64
qml/main.qml
|
@ -41,6 +41,7 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: _background
|
id: _background
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
border.width: 0
|
||||||
radius: windowRadius
|
radius: windowRadius
|
||||||
color: FishUI.Theme.backgroundColor
|
color: FishUI.Theme.backgroundColor
|
||||||
opacity: FishUI.Theme.darkMode ? 0.3 : 0.4
|
opacity: FishUI.Theme.darkMode ? 0.3 : 0.4
|
||||||
|
@ -53,56 +54,23 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
radius: windowRadius
|
radius: windowRadius
|
||||||
border.width: 1
|
border.width: 1
|
||||||
border.color: Qt.rgba(0, 0, 0, 0.3)
|
border.color: FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.3) : Qt.rgba(0, 0, 0, 0.1)
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
smooth: true
|
smooth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
FishUI.WindowShadow {
|
||||||
|
view: mainWindow
|
||||||
|
geometry: Qt.rect(root.x, root.y, root.width, root.height)
|
||||||
|
strength: 1
|
||||||
|
radius: root.windowRadius
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent
|
|
||||||
anchors.margins: 1
|
|
||||||
radius: windowRadius - 1
|
|
||||||
color: "transparent"
|
|
||||||
border.width: 1
|
|
||||||
border.color: FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.25)
|
|
||||||
: Qt.rgba(255, 255, 255, 0.1)
|
|
||||||
antialiasing: true
|
|
||||||
smooth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
// DockBackground {
|
|
||||||
// anchors.fill: parent
|
|
||||||
// radius: root.windowRadius
|
|
||||||
// opacity: FishUI.Theme.darkMode ? 0.3 : 0.4
|
|
||||||
// color: FishUI.Theme.backgroundColor
|
|
||||||
|
|
||||||
// Behavior on opacity {
|
|
||||||
// NumberAnimation {
|
|
||||||
// duration: 200
|
|
||||||
// easing.type: Easing.Linear
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Behavior on color {
|
|
||||||
// ColorAnimation {
|
|
||||||
// duration: 200
|
|
||||||
// easing.type: Easing.Linear
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
FishUI.WindowShadow {
|
|
||||||
view: mainWindow
|
|
||||||
geometry: Qt.rect(root.x, root.y, root.width, root.height)
|
|
||||||
strength: 1
|
|
||||||
radius: root.windowRadius
|
|
||||||
}
|
|
||||||
|
|
||||||
FishUI.WindowBlur {
|
FishUI.WindowBlur {
|
||||||
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue