diff options
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r-- | gui/ThemeParser.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h index 778158bff0..1e365a9433 100644 --- a/gui/ThemeParser.h +++ b/gui/ThemeParser.h @@ -316,6 +316,17 @@ class ThemeParser : public XMLParser { public: ThemeParser(GUI::ThemeRenderer *parent); + + bool getPaletteColor(const Common::String &name, int &r, int &g, int &b) { + if (!_palette.contains(name)) + return false; + + r = _palette[name].r; + g = _palette[name].g; + b = _palette[name].b; + + return true; + } protected: ThemeRenderer *_theme; |