feat(window): new border
This commit is contained in:
parent
ecd8ce48b6
commit
d8bda78a3b
1 changed files with 8 additions and 1 deletions
|
@ -49,11 +49,18 @@ Item {
|
||||||
// Background
|
// Background
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: _background
|
id: _background
|
||||||
|
|
||||||
|
property var borderColor: root.compositing ? FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.3)
|
||||||
|
: Qt.rgba(0, 0, 0, 0.2) : FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.15)
|
||||||
|
: Qt.rgba(0, 0, 0, 0.15)
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: root.compositing && Settings.style === 0 ? windowRadius : 0
|
radius: root.compositing && Settings.style === 0 ? windowRadius : 0
|
||||||
color: FishUI.Theme.darkMode ? "#666666" : "#E6E6E6"
|
color: FishUI.Theme.darkMode ? "#666666" : "#E6E6E6"
|
||||||
opacity: root.compositing ? FishUI.Theme.darkMode ? 0.5 : 0.5 : 0.9
|
opacity: root.compositing ? FishUI.Theme.darkMode ? 0.5 : 0.5 : 0.9
|
||||||
border.width: 0
|
border.width: 1 / FishUI.Units.devicePixelRatio
|
||||||
|
border.pixelAligned: FishUI.Units.devicePixelRatio > 1 ? false : true
|
||||||
|
border.color: borderColor
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
ColorAnimation {
|
ColorAnimation {
|
||||||
|
|
Loading…
Reference in a new issue