Commit Graph

9 Commits (master)

Author SHA1 Message Date
Bruno Van de Velde 54e72fbdcf ListView widget added (closes #83) 2019-01-21 19:25:03 +01:00
Bruno Van de Velde 10a02dbd8f Labels can now have a scrollbar (disabled by default for backwards compatibility) 2018-12-22 18:38:18 +01:00
Bruno Van de Velde 9187229aaa Added new TreeView widget 2018-12-15 10:40:46 +01:00
Bruno Van de Velde 5ba7c5c21d Renamed SpaceBetweenArrows to BorderBetweenArrows in SpinButton to better reflect that the space is filled with the border color 2018-04-26 19:50:33 +02:00
Bruno Van de Velde 7461aff68e Rewrote code for focusing widgets 2018-03-22 19:45:25 +01:00
Bruno Van de Velde 54f0245ad5 Replaced auto-sized texts with a fixed text size by default + other related changes
- 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.
2017-12-24 11:34:46 +01:00
Bruno Van de Velde a223933ab7 💥 Replaced ArrowUp and ArrowDown in ComboBox by a single Arrow property 2017-09-23 14:40:58 +02:00
Bruno Van de Velde b2b8c1fb46 💥 Theme and Renderer implementations were changed to allow a default theme to be set 2017-09-22 23:31:09 +02:00
Bruno Van de Velde 40e946c52c 🚚 Renamed 'widgets' folder to 'themes' 2017-09-21 14:02:36 +02:00