From c632452430cb3f886da38fa315cb27a3a3a10d2c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Oct 2012 20:29:23 +0300 Subject: Allow get colors from Widget2. --- src/gui/theme.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/theme.h') 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); -- cgit v1.2.3-60-g2f50