diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-23 13:56:55 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-14 13:53:08 +0100 |
commit | 2a8355942f7e4127ac911588c9893b4d6c5a82f8 (patch) | |
tree | 3255906c9f91e267f8758e6742bc65b843210889 /src/utils/stringutils.cpp | |
parent | 79e4325192f3260ed4ded264e43da8429650bf72 (diff) | |
download | mana-2a8355942f7e4127ac911588c9893b4d6c5a82f8.tar.gz mana-2a8355942f7e4127ac911588c9893b4d6c5a82f8.tar.bz2 mana-2a8355942f7e4127ac911588c9893b4d6c5a82f8.tar.xz mana-2a8355942f7e4127ac911588c9893b4d6c5a82f8.zip |
Moved widget drawing code into Theme
This is cleaner overall since now each widget type no longer needs to
keep track of its own instances and updating of the GUI alpha. It also
introduces a single point from where the GUI theme support can be
enhanced.
Theme is no longer a singleton, though for now there is a single
instance owned by the Gui singleton.
Widgets adjusted to delegate their painting to the Theme:
* Button
* Tab
* TextField
* CheckBox
* RadioButton
* Slider
* DropDown
* ProgressBar
* ScrollArea
* ResizeGrip
* PlayerBox (by subclassing ScrollArea)
The Window and Popup widgets already use the theme through the Skin
class. They can actually use a different skin per instance, though this
feature is only used by the SpeechBubble.
Diffstat (limited to 'src/utils/stringutils.cpp')
0 files changed, 0 insertions, 0 deletions