summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-28 18:50:28 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-28 19:04:29 +0300
commit285db66255e63f3967ae806eb888d4742cff3d9f (patch)
tree8b0a34c8ccec3b4f20176e1f64993f500e6dd73b /src/gui/widgets/browserbox.h
parentd2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa (diff)
downloadManaVerse-285db66255e63f3967ae806eb888d4742cff3d9f.tar.gz
ManaVerse-285db66255e63f3967ae806eb888d4742cff3d9f.tar.bz2
ManaVerse-285db66255e63f3967ae806eb888d4742cff3d9f.tar.xz
ManaVerse-285db66255e63f3967ae806eb888d4742cff3d9f.zip
Move simple colors to themes.
Need add to all themes, or all simple colors will be black.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r--src/gui/widgets/browserbox.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h
index 9969bfd3b..cd69ce56f 100644
--- a/src/gui/widgets/browserbox.h
+++ b/src/gui/widgets/browserbox.h
@@ -147,27 +147,18 @@ class BrowserBox : public gcn::Widget,
AUTO_WRAP /**< Maybe it needs a fix or to be redone. */
};
- /**
- * 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].
- * - 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
{
- RED = 0xff0000, /**< Color 1 */
- GREEN = 0x009000, /**< 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 */
+ RED = 0,
+ GREEN = 1,
+ BLUE = 2,
+ ORANGE = 3,
+ YELLOW = 4,
+ PINK = 5,
+ PURPLE = 6,
+ GRAY = 7,
+ BROWN = 8,
+ COLORS_MAX = 9
};
/**
@@ -229,6 +220,7 @@ class BrowserBox : public gcn::Widget,
gcn::Color mBackgroundColor;
gcn::Color mHighlightColor;
gcn::Color mHyperLinkColor;
+ gcn::Color mColors[COLORS_MAX];
};
#endif