From 668ae8a20e6bcbdda82ff2a30bbdd29fdf10210e Mon Sep 17 00:00:00 2001 From: abian Date: Thu, 5 Sep 2024 13:30:22 +0200 Subject: [PATCH] Increase height of middle panel to prevent icon overflow The icon/portrait of the middle panel when a single entity was selected was very subtly (4 px) overflowing its lane and invading that of the entity's name. This change fixes that by: - Raising the top of the middle panel by 4 px to leave room for the portrait/icon. This avoids having to shrink it and lose quality. - Distributing the 4 px of difference in height in the statistics area by lowering 1 px the top bar, 1 px the middle bar (if any), and 3 px the bottom bar (if any). The rest of the elements are lowered 4 px, and therefore remain in the same place. - Increasing the height of the minimap panel by 4 px so that it remains aligned with the middle panel, vertically centering the minimap, and making the necessary adjustments to the position of its buttons. Additionally, a couple of minor changes are applied: - The separators between the statistics area and the attack/resistance and resources area, and between the attack/resistance and resources area and the entity name area, which had different heights, are set to the same height/thickness. - The attack/resistance icon, which was very close to the entity icon/portrait, is moved 1 px to the right, and the resourceCarryingText (in the same area), which was very far from the resourceCarryingIcon, is also moved 3 px to the right. Fixes #7029 --- .../public/gui/session/minimap/MiniMap.xml | 10 +++++----- .../single_details_area.xml | 18 +++++++++--------- .../data/mods/public/gui/session/session.xml | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/binaries/data/mods/public/gui/session/minimap/MiniMap.xml b/binaries/data/mods/public/gui/session/minimap/MiniMap.xml index 834006837a..74cf99fbf4 100644 --- a/binaries/data/mods/public/gui/session/minimap/MiniMap.xml +++ b/binaries/data/mods/public/gui/session/minimap/MiniMap.xml @@ -16,7 +16,7 @@ @@ -24,7 +24,7 @@ @@ -54,7 +54,7 @@ - + @@ -26,14 +26,14 @@ - + - + -