egui/crates/epaint/src
Emil Ernerfeldt c530504a04
CSS-like shadows with offset, spread, and blur (#4232)
This makes `epaint::Shadow` more like CSS's box-shadow, adding `offset`
and replacing `extrusion` with `blur` and `spread`.

* Closes https://github.com/emilk/egui/pull/3047

The offsets make for nice drop-shadow effects.

Old shadows:
<img width="1447" alt="old-shadows"
src="https://github.com/emilk/egui/assets/1148717/8a30f7b9-fb9d-49ea-9a2f-9367a60c448a">

New shadows:
<img width="1447" alt="new-shadows-full"
src="https://github.com/emilk/egui/assets/1148717/28cc9c1e-b0de-4c5b-a705-22e52c556584">
2024-03-26 10:37:12 +01:00
..
text Fix text selection crashes 2024-01-24 15:47:44 +01:00
util Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
bezier.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
image.rs Add `ColorImage::from_gray_iter` (#3536) 2024-02-20 15:29:23 +01:00
lib.rs Add `Margin` to `epaint` (#4231) 2024-03-26 09:05:29 +01:00
margin.rs Add `Margin` to `epaint` (#4231) 2024-03-26 09:05:29 +01:00
mesh.rs Add layer transforms, interaction in layer (#3906) 2024-02-17 11:02:56 +01:00
mutex.rs Use `impl Into<Stroke>` as argument in a few more places (#3420) 2023-11-10 21:36:51 +01:00
shadow.rs CSS-like shadows with offset, spread, and blur (#4232) 2024-03-26 10:37:12 +01:00
shape.rs `epaint`: Add `EllipseShape` (#4122) 2024-03-20 13:23:21 +01:00
shape_transform.rs `epaint`: Add `EllipseShape` (#4122) 2024-03-20 13:23:21 +01:00
stats.rs `epaint`: Add `EllipseShape` (#4122) 2024-03-20 13:23:21 +01:00
stroke.rs Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
tessellator.rs `epaint`: Add `EllipseShape` (#4122) 2024-03-20 13:23:21 +01:00
texture_atlas.rs Fix buggy text withviewports on monitors with different scales (#3666) 2023-11-30 15:56:05 +01:00
texture_handle.rs Improved texture loading (#3315) 2023-09-12 10:39:17 +02:00
textures.rs Add `TextureOptions::wrap_mode` (#3954) 2024-02-05 09:37:05 +01:00