diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-24 14:28:55 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-24 21:14:28 +0100 |
commit | c600e0fae271ed25d066b01149fbc148295edde8 (patch) | |
tree | 6b57ba0988d9d38f3bf760ccc208ec8298bfbdde /data | |
parent | 5274cc92c1055a3209dfae7e5346bfe52c35e4a8 (diff) | |
download | mana-c600e0fae271ed25d066b01149fbc148295edde8.tar.gz mana-c600e0fae271ed25d066b01149fbc148295edde8.tar.bz2 mana-c600e0fae271ed25d066b01149fbc148295edde8.tar.xz mana-c600e0fae271ed25d066b01149fbc148295edde8.zip |
Expanded GUI theming capabilities
* Moved previously hardcoded values for frame size, padding and title bar
height to the Skin.
* Added support for rendering colored rectangles (used for scroll bar
background).
* Scroll bar width is now determined by its skin.
* Added separate skins for horizontal and vertical scroll bars and horizontal
and vertical scroll markers and added a skin for the shortcut box.
* Added support for hovered state on window close button.
Diffstat (limited to 'data')
-rw-r--r-- | data/graphics/gui/theme.xml | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/data/graphics/gui/theme.xml b/data/graphics/gui/theme.xml index 652a9422..047ef01c 100644 --- a/data/graphics/gui/theme.xml +++ b/data/graphics/gui/theme.xml @@ -49,17 +49,17 @@ <progressbar id="WEIGHT" color="#0000ff,ffff00,ff0000" /> <progressbar id="JOB" color="#e187cb" /> - <skin type="Window"> + <skin type="Window" frameSize="0" padding="3" titleBarHeight="20"> <state> <img src="window.png" left="4" right="4" top="4" bottom="4" /> </state> </skin> - <skin type="ResizeGrip"> + <skin type="ResizeGrip" padding="2"> <state> <img src="resize.png" /> </state> </skin> - <skin type="Popup"> + <skin type="Popup" padding="6"> <state> <img src="window.png" left="4" right="4" top="4" bottom="4" /> </state> @@ -69,7 +69,7 @@ <img src="bubble.png|W:#000000" left="5" right="5" top="5" bottom="5" height="15" /> </state> </skin> - <skin type="Button"> + <skin type="Button" padding="4"> <state disabled="true"> <img src="button_disabled.png" left="10" right="10" top="5" bottom="5" /> </state> @@ -83,7 +83,7 @@ <img src="button.png" left="10" right="10" top="5" bottom="5" /> </state> </skin> - <skin type="Tab"> + <skin type="Tab" padding="4"> <state selected="true"> <img src="tabselected.png" left="10" right="10" top="5" bottom="9" /> </state> @@ -128,17 +128,17 @@ <img src="radioout.png" offsetX="2" offsetY="2" /> </state> </skin> - <skin type="TextField"> + <skin type="TextField" frameSize="2" padding="2"> <state> <img src="deepbox.png" left="4" right="4" top="4" bottom="4" /> </state> </skin> - <skin type="ScrollArea"> + <skin type="ScrollArea" frameSize="2" padding="2"> <state> <img src="deepbox.png" left="4" right="4" top="4" bottom="4" /> </state> </skin> - <skin type="DropDownFrame"> + <skin type="DropDownFrame" frameSize="2" padding="1"> <state> <img src="deepbox.png" left="4" right="4" top="4" bottom="4" /> </state> @@ -157,7 +157,25 @@ <img src="vscroll_down_default.png" offsetX="-2" offsetY="2" /> </state> </skin> - <skin type="ScrollBar"> + <skin type="ScrollAreaVBar"> + <state> + <rect color="#000000" alpha="32" /> + </state> + </skin> + <skin type="ScrollAreaHBar"> + <state> + <rect color="#000000" alpha="32" /> + </state> + </skin> + <skin type="ScrollAreaHMarker"> + <state hovered="true"> + <img src="vscroll_highlight.png" left="4" right="4" top="4" bottom="4" /> + </state> + <state> + <img src="vscroll_grey.png" left="4" right="4" top="4" bottom="4" /> + </state> + </skin> + <skin type="ScrollAreaVMarker"> <state hovered="true"> <img src="vscroll_highlight.png" left="4" right="4" top="4" bottom="4" /> </state> @@ -218,12 +236,12 @@ <img src="hscroll_right_default.png" /> </state> </skin> - <skin type="ButtonClose"> + <skin type="ButtonClose" padding="3"> <state> <img src="close_button.png" /> </state> </skin> - <skin type="ButtonSticky"> + <skin type="ButtonSticky" padding="3"> <state selected="true"> <img src="sticky_button.png" x="15" width="15" height="15" /> </state> @@ -231,4 +249,9 @@ <img src="sticky_button.png" width="15" height="15" /> </state> </skin> + <skin type="ShortcutBox"> + <state> + <img src="item_shortcut_bgr.png" /> + </state> + </skin> </theme> |