You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shadows with negative spread (Tailwind shadow-md/-lg/-xl) can't be expressed #12
Tailwind's larger shadows use a negative spread. shadow-lg is 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1), and shadow-md and shadow-xl are built the same way. egui 0.37's Shadow stores spread as a u8, so a negative spread can't be passed through. bullseye's shadow(..) class inherits that limit. The shell's shadow-lg / shadow-xl therefore come out larger and heavier than in CSS.
Tailwind's shadows also stack two layers, while a BoxPaint holds a single shadow.
Possible fix (not planned yet)
A shadow with spread -s is the shadow of the box shrunk by s on every side, with the same offset and blur. bullseye could:
accept a signed spread,
paint it as an egui Shadow on the shrunken rect,
and allow more than one shadow layer.
Status
The user asked for this to be recorded, not yet added to the plan (#1). An example that shows the difference is coming in a separate PR.
Activity