refractor StyledDropShadow

This commit is contained in:
end-4
2025-11-05 00:41:44 +01:00
parent 1f208125bf
commit 8a35609b0d
2 changed files with 15 additions and 7 deletions
@@ -84,13 +84,8 @@ Item {
}
property bool useSineCookie: Config.options.background.widgets.clock.cookie.useSineCookie
DropShadow {
source: useSineCookie ? sineCookieLoader : roundedPolygonCookieLoader
anchors.fill: source
radius: 8
samples: radius * 2 + 1
color: root.colShadow
transparentBorder: true
StyledDropShadow {
target: useSineCookie ? sineCookieLoader : roundedPolygonCookieLoader
RotationAnimation on rotation {
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
}