v0.7.0 - Theming release!
Release v0.7.0 - Theming Release (Breaking Changes)
Thank you to everyone who has helped provide PRs and feedback for this library. Your help is appreciated!
- This new release adds support for Theming. Please see the widget_demos/theming demo for an example. It includes two default basic themes (Light and Dark) that you can use with your applications.
- This release also adds a new BBCode type [link]display text[/link] that may be used with text based widgets.
- This release introduces the "LongPress" callback on widgets.
- This release introduces an OnUpdate method that is called prior to each widget's OnUpdate method.
- New widget.Panel type - Container extension that can be used with Theming.
- New Utility method for helping turn constants to pointers: constantutil.ConstantToPointer
Breaking changes:
This release includes several breaking changes that you will need to handle when updating to this version. You can see examples of each of these in the various demos in the application.
- text.Face inputs are now references *text.Face
- widget.Insets inputs are now references *widget.Insets
- widget.ListOpts.SliderOpts are now widget.ListOpts.SliderParams
- List container images are now set with widget.ListOpts.ScrollContainerImage
- widget.ListComboButtonOpts.SelectComboButtonOpts are now widget.ListComboButtonOpts.ButtonParams
- widget.ListComboButtonOpts.ListOpts are now widget.ListComboButtonOpts.ListParams
- widget.ListOpts.SliderOpts are now widget.ListOpts.SliderParams
- List Slider container images are now set with widget.ListOpts.ScrollContainerImage
- widget.TextAreaOpts.SliderOpts are now widget.TextAreaOpts.SliderParams
- TextArea Slider container images are now set with widget.TextAreaOpts.ScrollContainerImage
- widget.TabBookOpts.Spacing is now widget.TabBookOpts.ContentSpacing
- TabBook tab button spacing is now set with widget.TabBookOpts.TabButtonTextPadding
- TextInput.Color is now TextInput.SetColor()
- TextInput.CaretWidth is now set by widget.TextInputOpts.CaretWidth
Please reach out in Discord if you have any questions or challenges with migrating.
What's Changed
- Scrollbars were not working properly when set vertical. by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/252
- Update main.yml by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/253
- Compile bbcode regex only once by @mat007 in https://github.com/ebitenui/ebitenui/pull/255
- Request relayout once when adding multiple children by @mat007 in https://github.com/ebitenui/ebitenui/pull/254
- Updated button to move the click and mask logic to the widget by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/257
- Fix UTs by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/258
- Initial commit of new checkbox format by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/259
- This change makes it so cursor events (entered, exted, moved) will no… by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/260
- Changes to support button text positioning by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/261
- Expose widget OnUpdate method by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/262
- Change layering to be an opt-in setting by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/263
- Fix duplicate keyboard entries by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/264
- #265 Fix button double trigger by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/266
- Bbcode link by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/267
- MouseButtonReleased is used in various places to indicate an interact… by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/268
- Move the link processing to the update loop by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/269
- Remove ui container registered handlers when switching to another one by @mat007 in https://github.com/ebitenui/ebitenui/pull/270
- w/list: Made 'SliderOpts' not required if hidden (H&V) by @xescugc in https://github.com/ebitenui/ebitenui/pull/274
- dont request a relayout when location is updated by @kazzmir in https://github.com/ebitenui/ebitenui/pull/277
- Theming by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/280
- Allow the setting of the initial focused widget: by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/281
- Resolve error where combo boxes were not working inside windows by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/282
- Set up method to send data back to the top level. This is a first ste… by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/283
- Setup new method to send messages to the top level by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/284
- Update window to use the Containerer Interface by @mcarpenter622 in https://github.com/ebitenui/ebitenui/pull/286
Full Changelog: https://github.com/ebitenui/ebitenui/compare/v0.6.2...v0.7.0