forked from Shinonome/dots-hyprland
refractor StyledDropShadow
This commit is contained in:
@@ -84,13 +84,8 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
property bool useSineCookie: Config.options.background.widgets.clock.cookie.useSineCookie
|
property bool useSineCookie: Config.options.background.widgets.clock.cookie.useSineCookie
|
||||||
DropShadow {
|
StyledDropShadow {
|
||||||
source: useSineCookie ? sineCookieLoader : roundedPolygonCookieLoader
|
target: useSineCookie ? sineCookieLoader : roundedPolygonCookieLoader
|
||||||
anchors.fill: source
|
|
||||||
radius: 8
|
|
||||||
samples: radius * 2 + 1
|
|
||||||
color: root.colShadow
|
|
||||||
transparentBorder: true
|
|
||||||
|
|
||||||
RotationAnimation on rotation {
|
RotationAnimation on rotation {
|
||||||
running: Config.options.background.widgets.clock.cookie.constantlyRotate
|
running: Config.options.background.widgets.clock.cookie.constantlyRotate
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import QtQuick
|
||||||
|
import Qt5Compat.GraphicalEffects
|
||||||
|
import qs.modules.common
|
||||||
|
|
||||||
|
DropShadow {
|
||||||
|
required property var target
|
||||||
|
source: target
|
||||||
|
anchors.fill: source
|
||||||
|
radius: 8
|
||||||
|
samples: radius * 2 + 1
|
||||||
|
color: Appearance.colors.colShadow
|
||||||
|
transparentBorder: true
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user