mirror of https://github.com/emilk/egui.git
Browse Source
I often write constants at the top of my widget files, as a "config". I kept writing stuff like that : ```rust const DEFAULT_INNER_MARGIN: Margin = Margin { left: 17., right: 17., top: 7., bottom: 7. }; ``` So I prefixed constructors for `Margin`, `Rounding` and `Shadow` const. No code was changed. I also added a `Shadow::new()` for similar reasons.pull/4090/head
0Qwel
9 months ago
committed by
GitHub
3 changed files with 13 additions and 9 deletions
Loading…
Reference in new issue