[wesnoth-commits] [wesnoth/wesnoth] 0d4854: ui: Fix 800x600 theme's sidebar tooltips
Steve Cotton
noreply at github.com
Tue Nov 23 21:39:42 UTC 2021
Branch: refs/heads/1.16
Home: https://github.com/wesnoth/wesnoth
Commit: 0d4854d5ffdcf265065d9519e2537dce14c8406e
https://github.com/wesnoth/wesnoth/commit/0d4854d5ffdcf265065d9519e2537dce14c8406e
Author: Steve Cotton <steve at octalot.co.uk>
Date: 2021-11-23 (Tue, 23 Nov 2021)
Changed paths:
M data/themes/default.cfg
Log Message:
-----------
ui: Fix 800x600 theme's sidebar tooltips
Two changes in the theme config for 1024x600, which is inherited by the config
for 800x600. Both are the same line but otherwise only loosely related to each
other; together these fix issue #6264, which was that trigger areas for some
tooltips overlapped.
Reduce the width for the unit's name, thus giving the side-flag and side-number
(which get the remaining horizontal space) enough space to display themselves.
128 pixels wide is the same as the name gets in larger themes, even though
those larger themes use larger font sizes. This means that the side number
doesn't get ellipsed, at least for games with up to 9 sides, with the
side-effect that the tooltip can be displayed when hovering over the flag.
Move the name, and thus the flag and side-number down by 1 pixel, so that they
don't overlap with the tooltip trigger areas for movement points and terrain
defense. The name's location is based on the placement of `unit-box-botleft`;
the theme for larger screen-sizes similarly adds 5 pixels of padding because
the `unit-box` is only 72x72 for the image, and the text areas for movement
points and defense go lower than that.
More information about the Commits
mailing list