Skip to content

Commit

Permalink
Don't use widgets for padding in Flex (linebender#1584)
Browse files Browse the repository at this point in the history
* move spacers away from being widget backed

* small cleanup

* other implementation

* fix??

* small performance improvements

* undo changes in example

* undo changes in example

* undo changes in example

* fmt

* add changelog

* mode to struct fields and add `.widget{_mut}` method on flex children

* fmt

* _even better_ nice looking stuff

* Update druid/src/widget/flex.rs

Co-authored-by: Colin Rofls <[email protected]>

* Update druid/src/widget/flex.rs

Co-authored-by: Colin Rofls <[email protected]>

* Update druid/src/widget/flex.rs

Co-authored-by: Colin Rofls <[email protected]>

* Apply suggestions from code review

Co-authored-by: Colin Rofls <[email protected]>
  • Loading branch information
2 people authored and xarvic committed Apr 6, 2021
1 parent 909dedf commit a455f65
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 122 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ You can find its changes [documented below](#070---2021-01-01).
- Warn on unhandled Commands ([#1533] by [@Maan2003])
- `WindowDesc::new` takes the root widget directly instead of a closure ([#1559] by [@lassipulkkinen])
- Switch to trace-based logging ([#1562] by [@PoignardAzur])
- Spacers in `Flex` are now implemented by calculating the space in `Flex` instead of creating a widget for it ([#1584] by [@JAicewizard])

### Deprecated

Expand Down
Loading

0 comments on commit a455f65

Please sign in to comment.