Commit graph

20 commits

Author SHA1 Message Date
Ignacio R. Morelle
ecf62cdaf2 gui2/ttoggle_button et al: Make GUI__BACKGROUND_COLOR_DISABLED transparent
Affects ttoggle_button "listbox_text" and "listbox_text_with_icon", and
ttoggle_panel.
2014-02-15 22:15:22 -03:00
Ignacio R. Morelle
e992f4eb84 gui2/ttoggle_button et al: Use transparent color background to match GUI1
Replace the definition of GUI__BACKGROUND_COLOR_ENABLED (used by the
"listbox_text" and "listbox_text_with_icon" variations of
ttoggle_button, and the default ttoggle_panel variation) so that it
matches the gui::menu::bluebg_style GUI1 menu style definition in
src/widgets/menu_style.cpp:29.

These controls are commonly used with gui2::tlistbox, so this change is
intended to make GUI2 listboxes in general have the same overall
appearance as GUI1 menus after the dialog background graphics were
replaced as part of the UI overhaul in 1.11.x.

The previous background definition for these GUI2 widgets was a solid
color, rgb(21, 19, 19), meaning that they necessarily wouldn't match
the standard bluebg_style GUI1 menu style, which uses rgba(0, 0, 0,
0.35).

Alpha 255 * 0.35 = 89.25, hence the new definition of
GUI__BACKGROUND_COLOR_ENABLED has an alpha channel value of 89 and not a
multiply of 10 or 2 like 90.
2014-02-15 19:38:35 -03:00
Charles Dang
fab74c0c1c Updated imagepaths to selection border images 2013-06-12 20:07:05 +11: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
3e96305e73 Added macros from the old wml_message.
mordante, do you know a better place for them?
2011-03-05 12:04:13 +00:00
Mark de Wever
8dc0c1e343 Rename gui2 wml colour to color. 2011-01-10 20:38:49 +00:00
Mark de Wever
1afb0daec3 Add a filler macro to fill empty grid cells. 2010-09-28 19:12:43 +00:00
Mark de Wever
6c1a5b7a2f Strip trailing spaces 2010-07-31 07:11:31 +00:00
Mark de Wever
40bf8c52ae Fixed a stacked widget marco.
Wasn't converted during the stacked widget behaviour change.
2010-04-10 05:38:38 +00:00
Mark de Wever
62669692b2 Use repeating buttons in the scrollbars. 2009-12-13 18:13:22 +00:00
Mark de Wever
8f3a947506 Fix widget order in GUI_FORCE_WIDGET_MINIMUM_SIZE.
With this fix the mouse focus is send to the containing widget instead
of the spacer.
2009-07-19 07:02:45 +00:00
Mark de Wever
f137241df0 Add a GUI_FORCE_WIDGET_MINIMUM_SIZE macro.
This way it's possible to force the (minimum) size of a widget.
2009-07-12 16:13:05 +00:00
Tomasz Śniatowski
c82645a4a4 add a TINY font size in gui2...
...and a default_tiny label definition, used it in new lobby
2009-07-07 19:50:58 +01:00
Nils Kneuper
6ccc7c33c7 add some textdomain markers to files that had none,
...should not introduce any strings, just for completions sake (every
.cfg should have a marker, have done the job util
utils/change_textdomain -t )
2009-04-11 22:30:16 +00:00
Mark de Wever
596eeca1de Add a new transparent scrolllabel for wml_message. 2009-02-28 18:09:29 +00:00
Mark de Wever
01df1d2fee Use the proper button ids.
With the invalid ids the buttons on the horizontal scrollbar didn't fix,
which has been fix.
2009-01-02 13:34:08 +00:00
Mark de Wever
665ef636e3 Revert 2008-12-13T22:07:30Z!ai0867@gmail.com.
2008-12-15T18:12:07Z!esr@thyrsus.com did the rename on the engine side which makes this
change no longer right. The name _initial.cfg sounds better as
_init.cfg.
2008-12-15 18:20:57 +00:00
Alexander van Gessel
589f9240e3 Rename _initial.cfg to _init.cfg to match the the C++. 2008-12-13 23:07:30 +01:00
Mark de Wever
ebf482bbb5 Move some macros to their own file.
This way those macros can be reused for all containers that need scrollbars.
2008-12-13 11:35:08 +00:00
Mark de Wever
53bdb88159 Restructure the data tree a bit.
In the macros directory some more generic macros will be defined, the
_initial.cfg should be loaded first. The engine doesn't enforce that yet but
probably esr will add that feature. (The odds of it not being loaded first is
probably theoretical.)
2008-12-13 11:22:50 +00:00