Commit graph

27 commits

Author SHA1 Message Date
Tommy
8380e018f5 Fix low-res themes during replay.
This was mentioned as a comment in #5620.
2022-06-17 03:02:38 +12:00
Iris Morelle
fd37a05ffe ui: Claim back unused space from the 800 px minimap theme
This allows the minimap widget to be 2 pixels wider, and frees up 7
pixels of vertical space for the rest of the sidebar
2021-03-24 04:23:25 -03:00
Iris Morelle
5f462c6064 ui: Remove orphaned references to the zoom slider 2021-03-24 04:05:18 -03:00
Iris Morelle
73e5bff25c ui: Remove unused zoom slider portion of the minimap panel
This allows us to claim back 10px for the rest of the sidebar.
2021-03-24 04:05:18 -03:00
Glen Whitney
2e6a043c1a Fix issue #4909. 2020-05-22 13:33:18 -05:00
Iris Morelle
f4ca974cd1 Disambiguate uses of the Play button label
This extends to a few other button labels used for replay control. While
checking if commit 46dbbc06c9 was fit for
backporting to 1.14 I found out that "Play" was already in use
exclusively for one of the replay control buttons (which means, no, it
can't be backported). This makes the disambiguation markers absolutely
necessary.

To give a more practical example of why this is a big deal, in Spanish,
"Play" would be translated as "Jugar" in the context of the Campaigns
menu, and "Reproducir" in the context of a replay (or movie). The
Spanish translation in fact already uses the latter in both 1.14 and
master.

[ci skip]
2019-11-10 23:43:05 -03:00
josteph
08352d2ab4 theme: Add optional argument to REPLAY_THEME for the benefit of user-defined themes
See #4184
2019-08-10 20:09:36 +00:00
josteph
e4cb8efc03 Theme: Remove the empty replay-label from the replay theme. 2019-02-24 17:11:57 +00:00
Jyrki Vesterinen
e9a6b95fd8 Better implementation of placing the clock (resolves #3582) 2018-11-18 19:52:24 +02:00
Jyrki Vesterinen
34d93d44ca Hide battery status if the device doesn't have a battery
The strategy is two-fold. We move the rendering of the icon into the
battery status report where it can be disabled at runtime, and allow the
countdown/clock to move to the position of the battery status if the device
doesn't have a battery. I also moved rendering of the clock icon to the
time report to allow the icon to move together with the text.

I needed to change theme::status_ to store pointers to status items because
otherwise the countdown object loses its type when inserted to the map. And
to be able to use std::unique_ptr inside the theme class, I had to make the
class non-copyable and movable.
2018-10-30 07:46:50 +02:00
Martin Hrubý (hrubymar10)
de183eeb2d Include battery percentage into GUI and add 2 versions of battery icon 2018-10-30 07:14:42 +02:00
Charles Dang
ff341cc8ee Theme: draw plain black bg if no [main_map_border] background_image= is given 2018-02-09 21:45:02 +11:00
Charles Dang
9f22a56370 Theme: added [main_map_border] show_border= key to control whether map borders draw
Fixes #2272.
2018-02-09 21:35:14 +11:00
Matthias Krüger
b11d3fdcbe fix a bunch of typos found by codespell in data directory.
https://github.com/lucasdemarchi/codespell
2018-02-06 23:03:06 +11:00
Charles Dang
01e3aaf97d Added Cutscene and Minimal Cutscene themes from After the Storm
These were added with permission from shadowm, and were copied verbatim save for a small tweak to
the position of the menu button in the cutscene theme to get rid of the 3 pixel offset on the left
which had been corrected a few releases back in the default theme.
2017-05-05 14:24:36 +11:00
Charles Dang
d4529dfc1e Removed ThemeWML border image keys
These were rendered unnecessary by 781276709d, which changed border rendering to use the terrain engine.
This also removes display::draw_border, which used the keys.
2017-04-25 19:49:08 +11:00
gfgtdf
fcf71a249a fix replay button description
https://gna.org/bugs/?24490
2017-03-14 19:52:34 +01:00
Charles Dang
d5a3878e8e Fixed slight button overlap in replay controls 2017-03-12 17:07:36 +11:00
Charles Dang
52cba5fc63 Enabled Lato for GUI1 and adjusted assigned sizes accordingly
Since GUI1 widgets seem to rely on the given font size values in font.hpp
for their dimensions, those are unchanged. ThemeWML-provided sizes were adjusted,
and larger sizes assigned to elements that were too small with the new font.

Theme element rects were also adjusted as necessary.
2016-05-18 08:05:02 +11:00
Charles Dang
edc2fb7e9d Default theme: restore backgrounds to sidebar panels 2016-03-20 03:58:50 +11:00
Charles Dang
33a68d33fd Remove background from theme status boxes and tweak position slightly 2016-03-16 00:13:53 +11:00
gfgtdf
ab8bf2d97e fix replay pause button description
https://gna.org/bugs/?24490
2016-03-03 12:03:07 +01:00
gfgtdf
7f24dd1907 add 'continue game' button to replaytheme
previously this was only accesible via hotkeys
2015-09-30 02:58:41 +02:00
Charles Dang
906f6bcfe4 Fixed path to default replay theme toolbar image 2015-01-21 00:54:28 +11:00
Ignacio R. Morelle
e34bf6f011 Fix image paths used by the Classic theme's replay bar
Includes renaming three files.
2015-01-15 05:03:54 -03:00
Ignacio R. Morelle
ab5d76fa96 Default theme uses 'classic' dir, Classic uses 'legacy'
Reverts a decision from commit 10b7cd63f5
in order to both make the Classic theme backportable to 1.12 and
eliminate an unnecessary complication for UMC.

At some point in the future, the Default theme will replace Classic when
the rumored UnitBox theme becomes the default, so I'd say naming its
directories "classic" makes sense, while the current Classic theme is
the "legacy" classic.

If we hadn't gotten stuck with Default using "classic" dirs in 1.12
there would be no need for any of this irritating nonsense.
2015-01-15 04:41:40 -03:00
Ignacio R. Morelle
61a7527a71 Rename data/themes/macros.cfg and include it only once instead of 7 times 2015-01-10 13:15:57 -03:00
Renamed from data/themes/macros.cfg (Browse further)