summaryrefslogtreecommitdiff
path: root/src/gui/theme.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-01 16:30:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-01 17:27:14 +0300
commit9ed4da85e64cb78b4eb55f12cac11e2dca9610a7 (patch)
treeb160762f520bc73f21c87cca4556ab046d313ae8 /src/gui/theme.h
parent097b17e588ed430482fa1e5e4938618db838e468 (diff)
downloadmanaverse-9ed4da85e64cb78b4eb55f12cac11e2dca9610a7.tar.gz
manaverse-9ed4da85e64cb78b4eb55f12cac11e2dca9610a7.tar.bz2
manaverse-9ed4da85e64cb78b4eb55f12cac11e2dca9610a7.tar.xz
manaverse-9ed4da85e64cb78b4eb55f12cac11e2dca9610a7.zip
Add ability to load theme xml files depend on screen density.
Known densities: low medium tv high xhigh xxhigh Xml file name example with density: window_high.xml if file with density missing, will be loaded file without density.
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r--src/gui/theme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 222d0d098..809729590 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -450,6 +450,7 @@ class Theme final : public Palette, public ConfigListener
static std::string mThemePath;
static std::string mThemeName;
+ static std::string mScreenDensity;
static Theme *mInstance;
static bool tryThemePath(std::string themePath) A_WARN_UNUSED;