diff --git a/dots/.config/quickshell/ii/modules/background/widgets/clock/CookieClock.qml b/dots/.config/quickshell/ii/modules/background/widgets/clock/CookieClock.qml index 1dbaea8cf..1284e4299 100644 --- a/dots/.config/quickshell/ii/modules/background/widgets/clock/CookieClock.qml +++ b/dots/.config/quickshell/ii/modules/background/widgets/clock/CookieClock.qml @@ -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 diff --git a/dots/.config/quickshell/ii/modules/common/widgets/StyledDropShadow.qml b/dots/.config/quickshell/ii/modules/common/widgets/StyledDropShadow.qml new file mode 100644 index 000000000..5daca8915 --- /dev/null +++ b/dots/.config/quickshell/ii/modules/common/widgets/StyledDropShadow.qml @@ -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 +}