Shadows: tweaking and centralization

This commit is contained in:
ItsLemmy
2025-11-04 22:03:33 -05:00
parent 185f2dd684
commit c78e3b5653
3 changed files with 20 additions and 24 deletions
+2
View File
@@ -43,6 +43,8 @@ Singleton {
property color mShadow: customColors.mShadow
property color transparent: "transparent"
property color black: "#000000"
property color white: "#ffffff"
// Extra colors that are auto generated
readonly property color mHover: Settings.data.colorSchemes.darkMode ? Qt.darker(mOnSurface, 1.25) : Qt.lighter(mOnSurface, 1.25)
+7
View File
@@ -57,6 +57,13 @@ Singleton {
property real opacityAlmost: 0.95
property real opacityFull: 1.0
// Shadows
property real shadowOpacity: 0.85
property real shadowBlur: 1.0
property int shadowBlurMax: 23
property real shadowHorizontalOffset: Settings.data.general.shadowOffsetX
property real shadowVerticalOffset: Settings.data.general.shadowOffsetY
// Animation duration (ms)
property int animationFast: Settings.data.general.animationDisabled ? 0 : Math.round(150 / Settings.data.general.animationSpeed)
property int animationNormal: Settings.data.general.animationDisabled ? 0 : Math.round(300 / Settings.data.general.animationSpeed)