dock: sync hide animation with bar, solid base09 edge line, remove content border
This commit is contained in:
parent
06e75f9473
commit
baf4fd8bd1
1 changed files with 4 additions and 37 deletions
|
|
@ -90,7 +90,7 @@ PanelWindow {
|
|||
property: "_slideX"
|
||||
to: root._dockWidth
|
||||
duration: 200
|
||||
easing.type: Easing.InCubic
|
||||
easing.type: Easing.OutCubic
|
||||
onFinished: root._winVisible = false
|
||||
}
|
||||
|
||||
|
|
@ -124,47 +124,14 @@ PanelWindow {
|
|||
}
|
||||
}
|
||||
|
||||
// Left edge gradient line - marks the virtual screen edge when pinned,
|
||||
// simple accent line in overlay mode
|
||||
// Left edge line - marks the virtual screen edge, matches bar border width.
|
||||
// Uses base09 (rightmost bar gradient color).
|
||||
Rectangle {
|
||||
id: _edgeLine
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
width: 1
|
||||
|
||||
gradient: S.DockState.mode === "pinned" ? _screenEdgeGradient : null
|
||||
color: S.DockState.mode === "pinned" ? "transparent" : root._accent
|
||||
opacity: _bg.opacity
|
||||
|
||||
transform: Translate {
|
||||
x: root._slideX
|
||||
}
|
||||
|
||||
Gradient {
|
||||
id: _screenEdgeGradient
|
||||
GradientStop {
|
||||
position: 0
|
||||
color: S.Theme.base0C
|
||||
}
|
||||
GradientStop {
|
||||
position: 1
|
||||
color: S.Theme.base09
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Dock content border - 1px accent, inset from the edge line by the gap
|
||||
Rectangle {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: S.Theme.groupSpacing
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
color: "transparent"
|
||||
border.color: root._accent
|
||||
border.width: 1
|
||||
radius: S.Theme.radius
|
||||
color: S.Theme.base09
|
||||
opacity: _bg.opacity
|
||||
|
||||
transform: Translate {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue