mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-20 07:13:56 -07:00
Previously, while `scrollbar` was set to true, the text was always vertically aligned to the top, no matter what its `text_valign` was, by the scrolling logic. However, this was done even when the text's caption was so short that no scrollbar was required in the first place (and not rendered). Falling back to the specified `text_valign` value in that case instead seems like the expected behavior. On a few occasions in the GUI, the text was supposed to be aligned to the top in either case, but still set `text_valign` to a different value (for whatever reason), which didn't have any effect previously. But now since it does, the values have to be corrected to specify what is actually desired.
143 lines
3 KiB
XML
143 lines
3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<styles>
|
|
|
|
<!--
|
|
==========================================
|
|
MENU TEXT STYLES
|
|
==========================================
|
|
-->
|
|
|
|
<style name="TitleText"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="LargeTitleText"
|
|
font="sans-bold-24"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<style name="MediumTitleText"
|
|
font="sans-bold-12"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
/>
|
|
|
|
<!--
|
|
==========================================
|
|
MENU WINDOW STYLES
|
|
==========================================
|
|
-->
|
|
|
|
<style name="TranslucentPanel"
|
|
sprite="BackgroundTranslucent"
|
|
buffer_zone="10"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="top"
|
|
/>
|
|
|
|
<style name="TranslucentPanelThinBorder"
|
|
sprite="TranslucentPanelThinBorder"
|
|
/>
|
|
|
|
<style name="StonePanelThinBorder"
|
|
sprite="StonePanelThinBorder"
|
|
/>
|
|
|
|
<!--
|
|
==========================================
|
|
MENU CONTROL ELEMENT STYLES
|
|
==========================================
|
|
-->
|
|
|
|
<style name="BrownButton"
|
|
sprite="BrownButton"
|
|
sprite_disabled="BrownButtonDisabled"
|
|
sprite_over="BrownButtonOver"
|
|
sprite_pressed="BrownButtonPressed"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
textcolor_disabled="210 210 210 160"
|
|
text_align="center"
|
|
text_valign="center"
|
|
sound_pressed="audio/interface/ui/ui_button_click.ogg"
|
|
/>
|
|
|
|
<style name="StoneButtonFancy"
|
|
sprite="StoneButton"
|
|
sprite_disabled="StoneButtonDisabled"
|
|
sprite_over="StoneButtonFancyOver"
|
|
sprite_pressed="StoneButtonFancyGlow"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
textcolor_disabled="210 210 210 160"
|
|
text_align="center"
|
|
text_valign="center"
|
|
sound_pressed="audio/interface/ui/ui_button_click.ogg"
|
|
/>
|
|
|
|
<style name="StoneButton"
|
|
sprite="StoneButton"
|
|
sprite_disabled="StoneButtonDisabled"
|
|
sprite_over="StoneButtonOver"
|
|
sprite_pressed="StoneButtonGlow"
|
|
font="sans-bold-stroke-14"
|
|
textcolor="white"
|
|
text_align="center"
|
|
text_valign="center"
|
|
sound_pressed="audio/interface/ui/ui_button_click.ogg"
|
|
/>
|
|
|
|
<style name="MapPlayerList"
|
|
buffer_zone="8"
|
|
font="sans-14"
|
|
scrollbar="true"
|
|
scrollbar_style="ModernScrollBar"
|
|
scroll_bottom="false"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="top"
|
|
/>
|
|
|
|
<style name="ChatPanel"
|
|
buffer_zone="5"
|
|
font="sans-13"
|
|
scrollbar="true"
|
|
scrollbar_style="ModernScrollBar"
|
|
scroll_bottom="true"
|
|
textcolor="white"
|
|
text_align="left"
|
|
/>
|
|
|
|
<style name="ChatPanelList"
|
|
buffer_zone="2"
|
|
font="sans-13"
|
|
scrollbar="true"
|
|
scrollbar_style="ModernScrollBar"
|
|
scroll_bottom="true"
|
|
textcolor="white"
|
|
text_align="left"
|
|
/>
|
|
|
|
<style name="TutorialPanel"
|
|
buffer_zone="8"
|
|
font="sans-bold-14"
|
|
scrollbar="true"
|
|
scrollbar_style="ModernScrollBar"
|
|
scroll_bottom="true"
|
|
textcolor="white"
|
|
text_align="left"
|
|
text_valign="top"
|
|
sprite="ModernDarkBox"
|
|
sprite_overlay="ModernDarkBoxGoldBorder"
|
|
/>
|
|
|
|
</styles>
|