Skip to content

Commit 3c53107

Browse files
committed
Separate Label and RawLabel
This makes label work more like other widgets; the RawLabel widget is a thing that has a text data type (currently ArcStr) and displays this text. The existing Label widget is rewritten as a wrapper around RawLabel; it is basically a sort of specialized, env-aware LensWrap.
1 parent e101e2b commit 3c53107

File tree

3 files changed

+269
-115
lines changed

3 files changed

+269
-115
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ You can find its changes [documented below](#060---2020-06-01).
4040
- Lens: Added Unit lens for type erased / display only widgets that do not need data. ([#1232] by [@rjwittams])
4141
- `WindowLevel` to control system window Z order, with Mac and GTK implementations ([#1231] by [@rjwittams])
4242
- WIDGET_PADDING items added to theme and `Flex::with_default_spacer`/`Flex::add_default_spacer` ([#1220] by [@cmyr])
43+
- `RawLabel` widget displays text `Data`. ([#1252] by [@cmyr])
4344

4445
### Changed
4546

@@ -463,6 +464,7 @@ Last release without a changelog :(
463464
[#1238]: https://github.com/linebender/druid/pull/1238
464465
[#1241]: https://github.com/linebender/druid/pull/1241
465466
[#1245]: https://github.com/linebender/druid/pull/1245
467+
[#1252]: https://github.com/linebender/druid/pull/1252
466468

467469
[Unreleased]: https://github.com/linebender/druid/compare/v0.6.0...master
468470
[0.6.0]: https://github.com/linebender/druid/compare/v0.5.0...v0.6.0

0 commit comments

Comments
 (0)