solid group backgrounds, glow shader on gradient border
This commit is contained in:
parent
d33b47139a
commit
0181c566cf
2 changed files with 21 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
|
@ -28,7 +29,9 @@ PanelWindow {
|
|||
}
|
||||
|
||||
Canvas {
|
||||
id: borderCanvas
|
||||
anchors.fill: parent
|
||||
visible: false
|
||||
|
||||
onPaint: {
|
||||
const ctx = getContext("2d");
|
||||
|
|
@ -94,6 +97,16 @@ PanelWindow {
|
|||
}
|
||||
}
|
||||
|
||||
MultiEffect {
|
||||
source: borderCanvas
|
||||
anchors.fill: borderCanvas
|
||||
shadowEnabled: true
|
||||
shadowColor: M.Theme.base0D
|
||||
shadowBlur: 0.4
|
||||
shadowVerticalOffset: 2
|
||||
shadowHorizontalOffset: 0
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue