NDropShadows

This commit is contained in:
ItsLemmy
2025-11-07 07:51:08 -05:00
parent 4319a1bea0
commit d5e9d7a200
5 changed files with 27 additions and 22 deletions
@@ -1,7 +1,7 @@
import QtQuick
import QtQuick.Shapes
import QtQuick.Effects
import qs.Commons
import qs.Widgets
/**
@@ -150,14 +150,8 @@ Item {
}
}
// Unified shadow system (one MultiEffect for all backgrounds)
MultiEffect {
NDropShadows {
anchors.fill: parent
source: backgroundsShape
anchors.fill: backgroundsShape
shadowEnabled: true
shadowBlur: Style.shadowBlur
shadowColor: Color.black
shadowHorizontalOffset: Settings.data.general.shadowOffsetX
shadowVerticalOffset: Settings.data.general.shadowOffsetY
}
}
+1 -6
View File
@@ -256,14 +256,9 @@ Variants {
}
// MultiEffect applied to background only
MultiEffect {
NDropShadows {
anchors.fill: cardBackground
source: cardBackground
shadowEnabled: true
shadowBlur: Style.shadowBlur
shadowColor: Color.black
shadowHorizontalOffset: Settings.data.general.shadowOffsetX
shadowVerticalOffset: Settings.data.general.shadowOffsetY
}
// Animation properties
+1 -6
View File
@@ -252,14 +252,9 @@ Variants {
}
// MultiEffect applied to background only
MultiEffect {
NDropShadows {
anchors.fill: background
source: background
shadowEnabled: true
shadowBlur: Style.shadowBlur
shadowColor: Color.black
shadowHorizontalOffset: Settings.data.general.shadowOffsetX
shadowVerticalOffset: Settings.data.general.shadowOffsetY
}
// Content loader on top of the background (not affected by MultiEffect)