summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-16 14:38:27 -0600
committerJared Adams <jaxad0127@gmail.com>2010-03-16 14:44:47 -0600
commitd0df8c76bcd0a5920a9ef1861d978ff52d021a02 (patch)
tree29d77d4fb880b6ba6ae819752798b06a2a656219 /src/gui/theme.cpp
parent0698461bd4001c6a1e3be1d755b3ebbafe229d42 (diff)
downloadmana-d0df8c76bcd0a5920a9ef1861d978ff52d021a02.tar.gz
mana-d0df8c76bcd0a5920a9ef1861d978ff52d021a02.tar.bz2
mana-d0df8c76bcd0a5920a9ef1861d978ff52d021a02.tar.xz
mana-d0df8c76bcd0a5920a9ef1861d978ff52d021a02.zip
Fix some color issues
Colors in BrowserBoxes generally didn't work. Also simplify much palette control detail. Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 4e0090e9..8d447c2f 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -101,6 +101,18 @@ Theme::Theme():
{
config.addListener("guialpha", this);
loadColors();
+
+ mColors[HIGHLIGHT].ch = 'H';
+ mColors[CHAT].ch = 'C';
+ mColors[GM].ch = 'G';
+ mColors[PLAYER].ch = 'Y';
+ mColors[WHISPER].ch = 'W';
+ mColors[IS].ch = 'I';
+ mColors[PARTY].ch = 'P';
+ mColors[GUILD].ch = 'U';
+ mColors[SERVER].ch = 'S';
+ mColors[LOGGER].ch = 'L';
+ mColors[HYPERLINK].ch = '<';
}
Theme::~Theme()
@@ -532,10 +544,9 @@ void Theme::loadColors(std::string file)
color = readColor(temp);
grad = readColorGradient(XML::getProperty(node, "effect", ""));
- mColors[type].set(type, color, grad, "", 0, 10);
+ mColors[type].set(type, color, grad, 10);
}
-
- if (xmlStrEqual(node->name, BAD_CAST "progressbar"))
+ else if (xmlStrEqual(node->name, BAD_CAST "progressbar"))
{
type = readProgressType(XML::getProperty(node, "id", ""));
if (type < 0) // invalid or no type given