mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
track styled popup
This commit is contained in:
parent
e82ef6e0c1
commit
189144099b
1 changed files with 32 additions and 0 deletions
32
shell/widgets/StyledPopup.qml
Normal file
32
shell/widgets/StyledPopup.qml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import ".."
|
||||||
|
|
||||||
|
PopupWindow {
|
||||||
|
id: root
|
||||||
|
color: "transparent"
|
||||||
|
implicitWidth: container.width
|
||||||
|
implicitHeight: container.height
|
||||||
|
|
||||||
|
default property alias contentItem: container.children
|
||||||
|
|
||||||
|
WrapperRectangle {
|
||||||
|
id: container
|
||||||
|
margin: 5
|
||||||
|
radius: 12
|
||||||
|
|
||||||
|
color: {
|
||||||
|
let base = ShellSettings.colors.surface;
|
||||||
|
return Qt.rgba(base.r, base.g, base.b, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
border {
|
||||||
|
width: 1
|
||||||
|
color: {
|
||||||
|
let base = ShellSettings.colors.active;
|
||||||
|
return Qt.rgba(base.r, base.g, base.b, 0.05);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue