diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2007-09-21 03:58:07 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-05 20:21:28 -0700 |
commit | 77db175ceabe8d05665191835d0250a927d93d32 (patch) | |
tree | 1dc69120e9455c30bc2ec36b2aa9bb63ae2f1295 /src/gui/browserbox.h | |
parent | fde40d91bceb1c7e7818d898f8731089ff87a9f4 (diff) | |
download | mana-77db175ceabe8d05665191835d0250a927d93d32.tar.gz mana-77db175ceabe8d05665191835d0250a927d93d32.tar.bz2 mana-77db175ceabe8d05665191835d0250a927d93d32.tar.xz mana-77db175ceabe8d05665191835d0250a927d93d32.zip |
Refactor the way in which browser box text is drawn and wrapped.
(cherry picked from mainline commit ecabe82d8720689905a6d035b0597d97037287c7)
Conflicts:
src/gui/browserbox.cpp
Diffstat (limited to 'src/gui/browserbox.h')
-rw-r--r-- | src/gui/browserbox.h | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/gui/browserbox.h b/src/gui/browserbox.h index 1c1e283a..7f871c96 100644 --- a/src/gui/browserbox.h +++ b/src/gui/browserbox.h @@ -25,8 +25,8 @@ #include <iosfwd> #include <vector> -#include <guichan/mouselistener.hpp> #include <guichan/widget.hpp> +#include <guichan/mouselistener.hpp> #include "../guichanfwd.h" #include "../main.h" @@ -111,13 +111,30 @@ class BrowserBox : public gcn::Widget, public gcn::MouseListener }; /** - * Some colours used in the browser box + * BrowserBox colors. + * + * NOTES (by Javila): + * - color values is "0x" prefix followed by HTML color style. + * - we can add up to 10 different colors: [0..9]. + * - we need a link and a highlighted link colors. + * - not all colors will be fine with all backgrounds due transparent + * windows and widgets. So, I think it's better keep BrowserBox + * opaque (white background) by default. */ - enum { - BLACK = 0x000000, - BGCOLOR = 0xffffff, - HIGHLIGHT = 0xcacaca + BLACK = 0x000000, /**< Color 0 */ + RED = 0xff0000, /**< Color 1 */ + GREEN = 0x1fa052, /**< Color 2 */ + BLUE = 0x0000ff, /**< Color 3 */ + ORANGE = 0xe0980e, /**< Color 4 */ + YELLOW = 0xf1dc27, /**< Color 5 */ + PINK = 0xff00d8, /**< Color 6 */ + PURPLE = 0x8415e2, /**< Color 7 */ + GRAY = 0x919191, /**< Color 8 */ + BROWN = 0x8e4c17, /**< Color 9 */ + BGCOLOR = 0xffffff, /**< Bg color for opacity */ + LINK = 0xe50d0d, /**< Color L */ + HIGHLIGHT = 0xcacaca /**< Bg color for highlighted link */ }; /** @@ -148,3 +165,4 @@ class BrowserBox : public gcn::Widget, public gcn::MouseListener }; #endif + |