๐ egui v0.15.0 Release Notes
Release Date: 2021-10-24 // over 2 years ago-
โ Added โญ
- โ Added horizontal scrolling support to
ScrollArea
andWindow
(opt-in). TextEdit::layouter
: Add custom text layout for e.g. syntax highlighting or WYSIWYG.- ๐
Fonts::layout_job
: New text layout engine allowing mixing fonts, colors and styles, with underlining and strikethrough. - โ Added
ui.add_enabled(bool, widget)
to easily add a possibly disabled widget. - Added
ui.add_enabled_ui(bool, |ui| โฆ)
to create a possibly disabled UI section. - โ Added feature
"serialize"
separatedly from"persistence"
. - Added
egui::widgets::global_dark_light_mode_buttons
to easily add buttons for switching the egui theme. TextEdit
can now be used to show text which can be selected and copied, but not edited.- โ Added
Memory::caches
for caching things from one frame to the next.
๐ Changed ๐ง
- ๐ Change the default monospace font to Hack.
- ๐ป Label text will now be centered, right-aligned and/or justified based on the layout of the
Ui
it is in. Hyperlink
will now word-wrap just like aLabel
.- ๐ป All
Ui
s must now have a finitemax_rect
.- Deprecated:
max_rect_finite
,available_size_before_wrap_finite
andavailable_rect_before_wrap_finite
.
- Deprecated:
Painter
/Fonts
: text layout now expect a color when creating aGalley
. You may override that color withPainter::galley_with_color
.- ๐ MSRV (Minimum Supported Rust Version) is now
1.54.0
. - ๐
By default,
DragValue
s no longer show a tooltip when hovered. Change withStyle::explanation_tooltips
. - Smaller and nicer color picker.
ScrollArea
will auto-shrink to content size unless told otherwise usingScollArea::auto_shrink
.- By default,
Slider
'sclamp_to_range
is set to true. - ๐ Renamed
TextEdit::enabled
toTextEdit::interactive
. - ๐ป
ui.label
(and friends) now takeimpl ToString
as argument instead ofimpl Into<Label>
.
๐ Fixed ๐
- ๐ Fixed wrongly sized multiline
TextEdit
in justified layouts. - ๐ Fixed clip rectangle of windows that don't fit the central area.
- ๐ Show tooltips above widgets on touch screens.
- ๐ Fixed popups sometimes getting clipped by panels.
โ Removed ๐ฅ
- ๐ป Replace
Button::enabled
withui.add_enabled
.
Contributors ๐
- โ Added horizontal scrolling support to