summaryrefslogtreecommitdiff
path: root/src/gui/theme.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-19 20:29:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:42 +0300
commitc632452430cb3f886da38fa315cb27a3a3a10d2c (patch)
treebdaeac586877e77046ef38dd4ad7a97a6b4e7af0 /src/gui/theme.h
parentdbba47eabe087d503426b5c5862aaa9263861ea5 (diff)
downloadmv-c632452430cb3f886da38fa315cb27a3a3a10d2c.tar.gz
mv-c632452430cb3f886da38fa315cb27a3a3a10d2c.tar.bz2
mv-c632452430cb3f886da38fa315cb27a3a3a10d2c.tar.xz
mv-c632452430cb3f886da38fa315cb27a3a3a10d2c.zip
Allow get colors from Widget2.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r--src/gui/theme.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 26d4ba99d..1e91b46ce 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -39,6 +39,8 @@ class Image;
class ImageSet;
class ProgressBar;
+const int THEME_PALETTES = 5;
+
struct ThemeInfo final
{
std::string name;
@@ -294,6 +296,9 @@ class Theme final : public Palette, public ConfigListener
bool &valid)
{ return mInstance->getCharColor(c, valid); }
+ static int getIdByChar(const signed char c, bool &valid)
+ { return mInstance->getIdByChar(c, valid); }
+
static gcn::Color getProgressColor(const int type,
const float progress);