From 579610498acff0f21bdc9e4638beb9afc675250b Mon Sep 17 00:00:00 2001 From: Iris Morelle Date: Wed, 17 Mar 2021 04:32:53 -0300 Subject: [PATCH] ui: Reduce unit HP/XP/MP/Def font sizes and line heights on 1024x600 Fixes the unit name overlapping the MP and defense reports. CC #5575 --- data/themes/default.cfg | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/data/themes/default.cfg b/data/themes/default.cfg index 78e647276e7..02060e327d7 100644 --- a/data/themes/default.cfg +++ b/data/themes/default.cfg @@ -23,6 +23,8 @@ 17#enddef #define DEFAULT_FONT_REALLYTINY_HEIGHT 15#enddef +#define DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER +13#enddef #define FONT_RGB_LEVEL1 245,230,193#enddef @@ -527,6 +529,46 @@ {MINIMAP_THEME_600} + [change] + id=label-hp + font_size={DEFAULT_FONT_REALLYTINY} + rect="+4,=-1,+60,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] + [change] + id=label-xp + font_size={DEFAULT_FONT_REALLYTINY} + rect="=,+14,+65,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] + [change] + id=label-mp + font_size={DEFAULT_FONT_REALLYTINY} + rect="=,+14,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] + [change] + id=label-def + font_size={DEFAULT_FONT_REALLYTINY} + rect="+1,=,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] + [change] + id=unit-hp + font_size={DEFAULT_FONT_REALLYTINY} + rect="=,+0,+94,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] + [change] + id=unit-xp + font_size={DEFAULT_FONT_REALLYTINY} + rect="=,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] + [change] + id=unit-moves + font_size={DEFAULT_FONT_REALLYTINY} + rect="=,+0,=-5,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] + [change] + id=unit-defense + font_size={DEFAULT_FONT_REALLYTINY} + rect="=-5,+0,+30,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}" + [/change] [change] id=unit-description font_size={DEFAULT_FONT_SMALL}