mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 06:43:58 -07:00
This reverts commit52ee6ad470. The original commit addressed incorrect UI alignment caused by improper handling of font height and linespacing after FreeType integration (introduced in734386ce9f). However, commit c2d529b975 corrected the root issue by standardizing font metrics: - Proper use of FreeType's height - Removal of lineSpace - Introduction of getCapHeight and Descender for accurate vertical alignment As a result, the UI offset workaround is now obsolete and must be reverted to reflect the correct baseline behavior.
130 lines
2.7 KiB
XML
130 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
|
|
|
|
<setup>
|
|
|
|
<!--
|
|
==========================================
|
|
- SETUP - ICONS
|
|
==========================================
|
|
-->
|
|
|
|
<icon name="iconInfo"
|
|
sprite="iconInfoGold"
|
|
size="16 16"
|
|
/>
|
|
|
|
<!--
|
|
==========================================
|
|
- SETUP - TOOLTIPS
|
|
==========================================
|
|
-->
|
|
|
|
<tooltip name="pgToolTip"
|
|
use_object="pgToolTip"
|
|
delay="0"
|
|
hide_object="true"
|
|
/>
|
|
|
|
<tooltip name="snToolTip"
|
|
anchor="top"
|
|
buffer_zone="4"
|
|
delay="500"
|
|
font="sans-14"
|
|
maxwidth="400"
|
|
offset="16 32"
|
|
sprite="BackgroundWhiteBorderBlack"
|
|
textcolor="0 0 0"
|
|
/>
|
|
|
|
<tooltip name="snToolTipBottom"
|
|
anchor="bottom"
|
|
buffer_zone="4"
|
|
delay="500"
|
|
font="sans-14"
|
|
maxwidth="400"
|
|
offset="-4 -4"
|
|
sprite="BackgroundWhiteBorderBlack"
|
|
textcolor="0 0 0"
|
|
/>
|
|
|
|
<tooltip name="sessionToolTip"
|
|
anchor="top"
|
|
buffer_zone="4"
|
|
delay="100"
|
|
font="sans-14"
|
|
maxwidth="400"
|
|
offset="16 32"
|
|
sprite="BackgroundSessionTooltip"
|
|
textcolor="255 255 255"
|
|
/>
|
|
|
|
<tooltip name="sessionToolTipInstantly"
|
|
anchor="top"
|
|
buffer_zone="4"
|
|
delay="0"
|
|
font="sans-14"
|
|
maxwidth="400"
|
|
offset="16 32"
|
|
sprite="BackgroundSessionTooltip"
|
|
textcolor="255 255 255"
|
|
/>
|
|
|
|
<tooltip name="sessionToolTipBottom"
|
|
anchor="bottom"
|
|
buffer_zone="4"
|
|
delay="100"
|
|
font="sans-14"
|
|
maxwidth="400"
|
|
offset="-4 -4"
|
|
sprite="BackgroundSessionTooltip"
|
|
textcolor="255 255 255"
|
|
/>
|
|
|
|
<tooltip name="sessionToolTipBold"
|
|
anchor="top"
|
|
buffer_zone="4"
|
|
delay="100"
|
|
font="sans-bold-14"
|
|
maxwidth="400"
|
|
offset="16 32"
|
|
sprite="BackgroundSessionTooltip"
|
|
textcolor="255 255 255"
|
|
/>
|
|
|
|
<tooltip name="sessionToolTipBottomBold"
|
|
anchor="bottom"
|
|
buffer_zone="4"
|
|
delay="100"
|
|
font="sans-bold-14"
|
|
maxwidth="400"
|
|
offset="-4 -4"
|
|
sprite="BackgroundSessionTooltip"
|
|
textcolor="255 255 255"
|
|
/>
|
|
|
|
<!--
|
|
==========================================
|
|
- SETUP - COLORS
|
|
==========================================
|
|
-->
|
|
|
|
<color name="black">0 0 0</color>
|
|
<color name="white">255 255 255</color>
|
|
<color name="red">255 0 0</color>
|
|
<color name="blue">0 0 255</color>
|
|
<color name="yellow">255 255 0</color>
|
|
|
|
<color name="gold">237 227 167</color>
|
|
<color name="lightgray">243 242 240</color>
|
|
<color name="gray">143 142 140</color>
|
|
<color name="darkgray">43 42 40</color>
|
|
<color name="green">0 200 0</color>
|
|
<color name="mustard">191 191 2</color>
|
|
<color name="brown">159 98 24</color>
|
|
<color name="orange">255 165 0</color>
|
|
<color name="darkred">80 0 0</color>
|
|
<color name="darkbrown">30 20 10</color>
|
|
|
|
<color name="transparent">0 0 0 0</color>
|
|
|
|
</setup>
|