Commit graph

206 commits

Author SHA1 Message Date
Mark de Wever
e74fb902e3 Set the minimum width for a listbox cell.
Backported from master 02b761b24e, fixes bug #22046.

Thanks to shadowm for reminding me to backport this patch.
2014-07-15 20:34:11 +02:00
Ignacio R. Morelle
2ffdcb7e45 gui2/tslider: Add minimal variant without a text label
The default variant's text label is both inflexible in content (can't
customize the format for non-edge values) and layout (reserves way more
space than it needs at a time for its text label, often resulting in
huge horizontal gaps between a slider and an adjacent widget). This
makes it unsuitable for use in gui2::tchat_log.

This new minimal variant will be wired into gui2::tchat_log next.
2014-06-19 02:33:56 -04:00
Mark de Wever
06b7144e1a Set the minimum size for a listbox cell.
The images drawn for a selected cell require a minimum size.

The change is part 2/2 of the fix for bug #22144.
2014-06-09 19:11:56 +02:00
Ignacio R. Morelle
a9298e1d6d gui2/ttext_box: Add a 'transparent' backgroundless variant for WML [message] 2014-02-21 00:35:38 -03:00
Ignacio R. Morelle
f28e74c0bd gui2/ttext_box: Workaround text AA issue with transparent background
... by making it not transparent.

For some reason, on Linux the antialiasing of the textbox text contents
looks slightly off when the background is a transparent (a != 255)
color. This does not happen when a solid color (a == 255) is used
instead.

Since Cairo AA is broken horribly with ClearType on Windows atm I'm not
really sure this specific bug also happens there.

To keep the intended effect of ebc214ff12,
I took a couple of screenshots of the textbox widget in both its enabled
and disabled states and averaged the background colors with the GIMP to
get an approximation of the result of blending the transparent overlay
from the GUI__BACKGROUND_COLOR_* macros with the standard dialog
background.
2014-02-21 00:12:52 -03:00
Ignacio R. Morelle
eadb22f67b gui2/tlabel: Add gold_small variation 2014-02-19 06:39:51 -03:00
Ignacio R. Morelle
ebc214ff12 gui2/ttext_box: Use standard GUI__BACKGROUND_COLOR_* background colors
Note that this widget lacked a background before, making it look like
a simple label with a border and caret. In my opinion, the subtle
background is an improvement that highlights the widget's "dynamicness",
and makes it more obvious when it is disabled.
2014-02-15 22:21:42 -03:00
Ignacio R. Morelle
393ebb447c gui2/tprogress_bar: Use same background as listbox (children) widgets
Replaces the solid RGB background with the generic RGBA background
defined in GUI__BACKGROUND_COLOR_ENABLED.
2014-02-15 21:54:36 -03:00
Mark de Wever
3c9f91a8af Enables blurring in the title screen.
Shadowm figured out why blurring didn't work properly in the title screen
and created a proof-of-concept patch. This patch is heavily based upon
that patch.
2014-02-15 18:55:13 +01:00
Ignacio R. Morelle
a30c50d567 gui2/tlabel: Add 'default_bold' variant for text in bold 2014-02-12 04:16:56 -03:00
Ignacio R. Morelle
684a9bfe71 gui2/tscroll_label: Undefine local macro before EOF 2014-01-04 11:32:27 -03:00
Ignacio R. Morelle
ee39012ba9 gui2/tscroll_label: Add the definition for a 'description' scroll_label
This scroll_label definition is intended to be used for big description
boxes like in the Add-ons Manager's description dialog. It paints a
darker transparent background behind the inner grid and adds some
padding to the inner label.
2014-01-04 07:19:41 -03:00
Ignacio R. Morelle
53cd669c8e gui2/ttoggle_button: Add "radio" variant using the radiobox graphics 2013-11-13 00:57:04 -03:00
Ignacio R. Morelle
916430ac3e gui2/tbutton: Add 25x25 left/right_arrow_short_ornate variants 2013-10-25 06:23:21 -03:00
Ignacio R. Morelle
ea4788e0cf gui2/tbutton: Add 25x25 variants for browse/go and copy-to-clipboard actions 2013-09-26 01:34:13 -03:00
Charles Dang
f8be6caa0e Removed bg from titlescreen version label. It reads fine against the main wooden bg without it 2013-06-13 02:08:58 +11:00
Charles Dang
5a35bc4b74 Used opacity IPF (value 65%) for wml message tp border, and grayscale IPF for disabled state of the same 2013-06-12 20:07:14 +11:00
Charles Dang
fab74c0c1c Updated imagepaths to selection border images 2013-06-12 20:07:05 +11:00
Charles Dang
e0fb308439 Fixed wrong macro arg name and missing quote 2013-06-09 05:07:04 +11:00
Charles Dang
cd07621cc0 Use grayscale IPF for slider disabled state 2013-06-09 03:28:17 +11:00
Charles Dang
60283c1455 USe opacity IPF for transparent scrollbars instead of seperate images (value set to 65%) 2013-06-09 03:13:02 +11:00
Charles Dang
0348e68de6 Use grayscale IPF for disabled tree view toggle button state 2013-06-09 01:11:42 +11:00
Charles Dang
7fe8cc5f84 Use grayscale IPF for disabled widget variations instead of specific images 2013-06-08 22:54:37 +11:00
Charles Dang
750d9d084a Used correct image paths for default toggle button's disabled state 2013-06-08 11:07:53 +11:00
Charles Dang
beb177e09b Made repeating button use opacity IPF for transparent versions (value set to 65%).
Thanks to bumbadadabum for pointing out I had forgot to do this
2013-06-07 02:48:41 +11:00
Charles Dang
ea56778b8f Use opacity IPF for transparent button images. Value set to 65% 2013-06-04 20:28:43 +11:00
Charles Dang
5211a99b1b Used regular as opposed to copper button variation images for default button 2013-06-04 20:18:04 +11:00
Charles Dang
b32ca5c390 Updated path for transparent version of default buttons 2013-06-03 05:33:21 +11:00
Charles Dang
929b07dc87 Bumped size by 1 for normal icon toggle button, tiny res, for consistency 2013-05-30 23:00:40 +11:00
Charles Dang
1bb0b4e28f Increased size of nornal icon toggle button a little. Prevents scaling on normal resolutions. 2013-05-30 22:51:29 +11:00
Charles Dang
bc63985554 Made icon toggle button/resize map dialog use new images 2013-05-30 17:20:30 +11:00
Charles Dang
09c899515d Made use of pressed and active overlay variations 2013-05-30 04:40:24 +11:00
Charles Dang
485eef1f7c Used grayscale imagepathfunction on disabled state overlays in absence of specific image 2013-05-30 04:18:45 +11:00
Charles Dang
6186222165 Made repeating button use new images 2013-05-30 03:04:40 +11:00
Charles Dang
55a5331967 Fixed typos 2013-05-29 22:05:13 +11:00
Charles Dang
9e423a50cf New 25x25 button defnitions: Add and Delete 2013-05-29 19:54:16 +11:00
Charles Dang
582764730c Made 25x25 buttons use new images 2013-05-29 19:39:44 +11:00
fendrin
300518e8e9 Made use of the new button images (gui2). 2013-05-15 14:47:01 +02:00
fendrin
731f31abf5 Adjust pathes to the new slider artwork in gui2. 2013-05-15 00:09:44 +02:00
fendrin
8e5941eb03 Fixed the reference to a renamed gui image. 2013-03-30 18:16:11 +01:00
Mark de Wever
c93d7d1484 Add a new matrix widget.
This widget is slated to replace the current listbox in the
future. The code however is only ready as proof-of-concept code, and
not usable in real code yet.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-28 08:52:47 +00:00
Ignacio R. Morelle
5902006c84 gui2: Make a label string translatable
(The string is already translatable in the same domain, so this
doesn't break the string freeze.)
2011-12-05 20:39:21 +00:00
Ignacio R. Morelle
6ef8aee4f6 gui2/tprogress_bar: Correct Y assignments...
...that made this look slightly different compared to the titlescreen
progress bar
2011-11-04 19:36:09 +00:00
Mark de Wever
d32cfe007c Remove an unused file.
Detected by Sytyi's validation project.
2011-08-23 19:31:45 +00:00
Mark de Wever
1d3867322d Fix some invalid keys.
Found by Sytyi's validation tool.
2011-08-15 17:19:05 +00:00
Mark de Wever
bd354685df Fix an invalid key.
Found by Sytyi's validation tool.
2011-08-11 19:55:18 +00:00
Mark de Wever
251ce7207d Fix an invalid key.
Found by Sytyi's validation tool.
2011-08-11 19:55:14 +00:00
Ignacio R. Morelle
10d77e1540 gui2: Create a definition for windows without border decorations 2011-06-24 03:10:55 +00:00
Mark de Wever
360ade6068 Revert the entire new messages stuff.
The main reason for reverting are:

The stuff has hampered my development for almost a month now, including
forcing me to delay things I need to/want to work on.

The recruit dialog looks very ugly on 1024x768 since it doesn't fit entirely
on the screen. It's still usable, but lowering the height of the main window
makes the dialog unusable.

The code includes several new wml errors:

"Invalid WML found: Window builder: parsing resolution tip with empty 'id'
field. Will become mandatory in 1.9.7. (4)"

The unit tests are broken, and instead of being fixed properly their
code is being `fixed' by disabling tests. 2011-03-05T20:39:56Z!fabianmueller5@gmx.de indicates it
should fix the unit tests, but it doesn't so the code seems
untested. Which means I still can't use the tests for other code I
want to commit.

In 2011-03-05T09:12:02Z!fabianmueller5@gmx.de fendrin commits not working code with the goal to
force me to help him, which I consider bad practice, show the code in
a pastebin if you want help. I want to work on things when _I_ choose
to, and not being coerced to by committing bad code.

Commit 2011-03-05T12:04:13Z!fabianmueller5@gmx.de throws private _GUI* macros in a global header,
which might break other code in unexpected ways. The file modified
even contains the documentation regarding how to use GUI* and _GUI*
macros. And another remark that I should look at fixing the issue.

So I had enough of this stuff; it's incomplete, buggy and hampers the work
of at least one other developer for several weeks now.

Reverts fendrin's commits:

2011-02-11T19:01:16Z!fabianmueller5@gmx.de
2011-02-12T06:25:47Z!fabianmueller5@gmx.de
2011-02-12T16:43:20Z!fabianmueller5@gmx.de
2011-02-12T17:37:40Z!fabianmueller5@gmx.de
2011-02-12T18:36:30Z!fabianmueller5@gmx.de
2011-02-12T19:59:34Z!fabianmueller5@gmx.de
2011-02-12T20:47:43Z!fabianmueller5@gmx.de
2011-02-12T21:41:35Z!fabianmueller5@gmx.de
2011-02-12T22:35:15Z!fabianmueller5@gmx.de
2011-02-14T19:24:40Z!fabianmueller5@gmx.de
2011-02-14T20:55:55Z!fabianmueller5@gmx.de,
2011-03-02T18:59:59Z!fabianmueller5@gmx.de
2011-03-03T13:34:48Z!fabianmueller5@gmx.de
2011-03-03T13:56:10Z!fabianmueller5@gmx.de
2011-03-03T17:32:49Z!fabianmueller5@gmx.de
2011-03-04T00:52:26Z!fabianmueller5@gmx.de
2011-03-04T11:27:39Z!fabianmueller5@gmx.de
2011-03-04T11:28:48Z!fabianmueller5@gmx.de
2011-03-05T09:12:02Z!fabianmueller5@gmx.de
2011-03-05T11:16:09Z!fabianmueller5@gmx.de
2011-03-05T11:19:37Z!fabianmueller5@gmx.de
2011-03-05T11:21:19Z!fabianmueller5@gmx.de
2011-03-05T11:32:25Z!fabianmueller5@gmx.de
2011-03-05T11:47:30Z!fabianmueller5@gmx.de
2011-03-05T12:00:39Z!fabianmueller5@gmx.de
2011-03-05T12:01:22Z!fabianmueller5@gmx.de
2011-03-05T12:02:03Z!fabianmueller5@gmx.de
2011-03-05T12:02:46Z!fabianmueller5@gmx.de
2011-03-05T12:04:13Z!fabianmueller5@gmx.de
2011-03-05T12:05:02Z!fabianmueller5@gmx.de
2011-03-05T12:20:25Z!fabianmueller5@gmx.de
2011-03-05T12:24:39Z!fabianmueller5@gmx.de
2011-03-05T13:56:43Z!fabianmueller5@gmx.de,
2011-03-05T16:32:38Z!fabianmueller5@gmx.de
2011-03-05T16:34:34Z!fabianmueller5@gmx.de
2011-03-05T16:35:17Z!fabianmueller5@gmx.de
2011-03-05T20:39:56Z!fabianmueller5@gmx.de
2011-03-05T22:17:03Z!fabianmueller5@gmx.de
2011-03-05T22:29:29Z!fabianmueller5@gmx.de.

Also reverts a build system change that is no longer needed:

2011-03-05T16:35:04Z!anonymissimus@arcor.de
2011-03-06 08:28:23 +00:00
Fabian Müller
28ee828a3c Adjusted the position and layout of the recruit dialog. 2011-03-05 22:17:03 +00:00