- A global text size was added which widgets will use by default. The size can be changed with tgui::setGlobalTextSize(). The default text size is 13 pixels.
- A global font was added. Widgets now have a font upon construction instead of only receiving it once they are added to their parent. Operations that require a font (e.g. getting the size of an auto-sized label) can now be done before the widget is added to the parent. The font can be changed with tgui::setGlobalFont().
- A small padding was added to the side of texts. The text will no longer be touching the borders of the widget.
- Reduced size of check in colored CheckBox and RadioButton
- The white theme has been updated to look slightly better.
- Default sizes of widgets with text now depend on the global text size.
- The size of a button now changes with the text it contains until setSize is called.
- ChildWindow title buttons can show some unicode characters instead of being empty squares.
- Text size of title in ChildWindow can now be independently set from the title bar height.
- Scrollbars are now only inside borders and no longer inside padding as well.
- ChatBox no longer has a separate font per line.
List of changes:
- Text auto sizing was improved
- Every widget now has a font and a setFont function. The setTextFont
and setGlobalFont functions were removed.
- You can now set a custom text size in ListBox
- ListBox now has an auto scroll option to move the scrollbar down when
a new item is added (enabled by default)
- setTexture functions were added to Picture to change the image after
it was loaded
- HorizontalLayout and VerticalLayout can now decently handle widgets
with borders
- All widgets with borders now correctly implement getFullSize
- Fixed loading MessageBox from a theme file
- Fixed positioning of LoadingBar front image from Black theme
- Added new tests