diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-17 10:39:38 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-24 13:47:11 +0100 |
commit | 5274cc92c1055a3209dfae7e5346bfe52c35e4a8 (patch) | |
tree | 8bb9ceab97fb752a07294a52dcf2d390e79616fe /src/utils/stringutils.cpp | |
parent | d5f49e4bef99e2ae4b39bdf1b7c644c28a85c5a2 (diff) | |
download | mana-5274cc92c1055a3209dfae7e5346bfe52c35e4a8.tar.gz mana-5274cc92c1055a3209dfae7e5346bfe52c35e4a8.tar.bz2 mana-5274cc92c1055a3209dfae7e5346bfe52c35e4a8.tar.xz mana-5274cc92c1055a3209dfae7e5346bfe52c35e4a8.zip |
Define the GUI theme in XML
Now all images used by the various UI widgets are defined in a
`theme.xml`, removing hardcoded requirements on the size of images,
borders and sub-images and their locations. The `colors.xml` file was
merged into this new file as well.
The `<img>` element defines either a plain image, or a 9-scale that is
automatically rendered at the size of the widget when any of the `left`,
`right`, `top` or `bottom` attributes are given.
The `x`, `y`, `width` and `height` attributes determine the
sub-rectangle within the image referenced by `src`. `x` and `y` default
to 0 and `width` and `height` default to the imge size.
The `<state>` element defines in which state its images are used by
setting its `selected`, `disabled`, `hovered` or `focused` attributes to
either `true` or `false`. Only the first matching state is rendered.
The `Text` and `SpeechBubble` classes now use the same skin to draw the
bubble, as well as using a newly introduced `BUBBLE_TEXT` color from the
theme palette.
Diffstat (limited to 'src/utils/stringutils.cpp')
0 files changed, 0 insertions, 0 deletions