๐Ÿ–Œ egui v0.15.0 Release Notes

Release Date: 2021-10-24 // over 2 years ago
  • โž• Added โญ

    • โž• Added horizontal scrolling support to ScrollArea and Window (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 a Label.
    • ๐Ÿ’ป All Uis must now have a finite max_rect.
      • Deprecated: max_rect_finite, available_size_before_wrap_finite and available_rect_before_wrap_finite.
    • Painter/Fonts: text layout now expect a color when creating a Galley. You may override that color with Painter::galley_with_color.
    • ๐Ÿ‘ MSRV (Minimum Supported Rust Version) is now 1.54.0.
    • ๐Ÿ’… By default, DragValues no longer show a tooltip when hovered. Change with Style::explanation_tooltips.
    • Smaller and nicer color picker.
    • ScrollArea will auto-shrink to content size unless told otherwise using ScollArea::auto_shrink.
    • By default, Slider's clamp_to_range is set to true.
    • ๐Ÿ“‡ Renamed TextEdit::enabled to TextEdit::interactive.
    • ๐Ÿ’ป ui.label (and friends) now take impl ToString as argument instead of impl 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 with ui.add_enabled.

    Contributors ๐Ÿ™