C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
C++ / clang-tidy (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 9s
JS/TS / lint (pull_request) Successful in 9s
Python / static (pull_request) Failing after 33s
Rust / build (pull_request) Successful in 48s
Python / verify (pull_request) Failing after 1m24s
Rust / fmt (pull_request) Successful in 32s
Rust / clippy (pull_request) Successful in 57s
43 lines
756 B
QML
43 lines
756 B
QML
import QtQuick
|
|
import Quickshell
|
|
import ZShell.Components
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property real radius
|
|
property real topLeftRadius: radius
|
|
property real topRightRadius: radius
|
|
property real bottomRightRadius: radius
|
|
property real bottomLeftRadius: radius
|
|
property color color: "transparent"
|
|
default property alias contentData: contentItem.data
|
|
|
|
Item {
|
|
id: contentItem
|
|
|
|
anchors.fill: parent
|
|
}
|
|
|
|
ShaderEffectSource {
|
|
id: src
|
|
|
|
hideSource: true
|
|
sourceItem: contentItem
|
|
}
|
|
|
|
RoundedMask {
|
|
anchors.fill: parent
|
|
source: src
|
|
topLeftRadius: root.topLeftRadius
|
|
topRightRadius: root.topRightRadius
|
|
bottomRightRadius: root.bottomRightRadius
|
|
bottomLeftRadius: root.bottomLeftRadius
|
|
color: root.color
|
|
}
|
|
|
|
Behavior on color {
|
|
CAnim {}
|
|
}
|
|
}
|