summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-22 14:21:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-22 14:21:27 +0300
commit48646db55005a0da079bd2c945875dc8225e2f86 (patch)
tree4d7b18cb201682cbb32f1f1677a0935a8e7928a4 /src/gui/theme.cpp
parent9c12fcdfe590f34543fcecc2691b625c408f1746 (diff)
downloadmanaplus-48646db55005a0da079bd2c945875dc8225e2f86.tar.gz
manaplus-48646db55005a0da079bd2c945875dc8225e2f86.tar.bz2
manaplus-48646db55005a0da079bd2c945875dc8225e2f86.tar.xz
manaplus-48646db55005a0da079bd2c945875dc8225e2f86.zip
Move color into gui dir.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 2a1b0d624..1a504f680 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -259,7 +259,7 @@ void Theme::deleteInstance()
mInstance = nullptr;
}
-gcn::Color Theme::getProgressColor(const int type, const float progress)
+Color Theme::getProgressColor(const int type, const float progress)
{
int color[3] = {0, 0, 0};
@@ -273,7 +273,7 @@ gcn::Color Theme::getProgressColor(const int type, const float progress)
logger->log("color not found: " + toString(type));
}
- return gcn::Color(color[0], color[1], color[2]);
+ return Color(color[0], color[1], color[2]);
}
Skin *Theme::load(const std::string &filename, const std::string &filename2,
@@ -972,7 +972,7 @@ static int readColorType(const std::string &type)
return -1;
}
-static gcn::Color readColor(const std::string &description)
+static Color readColor(const std::string &description)
{
const int size = static_cast<const int>(description.length());
if (size < 7 || description[0] != '#')
@@ -1010,7 +1010,7 @@ static gcn::Color readColor(const std::string &description)
v = (v << 4) | n;
}
- return gcn::Color(v);
+ return Color(v);
}
static Palette::GradientType readColorGradient(const std::string &grad)
@@ -1084,7 +1084,7 @@ void Theme::loadColors(std::string file)
int type;
std::string temp;
- gcn::Color color;
+ Color color;
GradientType grad;
for_each_xml_child_node(paletteNode, root)