diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 15:04:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 15:08:24 +0300 |
commit | 07121956f882dce22235868a25e0c2df96fb828a (patch) | |
tree | 5078133e95d7b55c4811e09c9dc4f53261e62fe9 /src/gui/widgets/widget2.h | |
parent | f57b683f8f9909ba7787c33a4953869a2ce04a5c (diff) | |
download | mv-07121956f882dce22235868a25e0c2df96fb828a.tar.gz mv-07121956f882dce22235868a25e0c2df96fb828a.tar.bz2 mv-07121956f882dce22235868a25e0c2df96fb828a.tar.xz mv-07121956f882dce22235868a25e0c2df96fb828a.zip |
Move theme colors enum into separate file.
Diffstat (limited to 'src/gui/widgets/widget2.h')
-rw-r--r-- | src/gui/widgets/widget2.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h index 2fdb8b12b..9fad6a882 100644 --- a/src/gui/widgets/widget2.h +++ b/src/gui/widgets/widget2.h @@ -21,6 +21,8 @@ #ifndef GUI_WIDGETS_WIDGET2_H #define GUI_WIDGETS_WIDGET2_H +#include "enums/gui/themecolorid.h" + #include "gui/theme.h" class Widget; @@ -59,7 +61,7 @@ class Widget2 notfinal void setPalette(int palette) { - mPaletteOffset = palette * Theme::THEME_COLORS_END; + mPaletteOffset = palette * ThemeColorId::THEME_COLORS_END; checkPalette(); setWidget2(this); } @@ -67,7 +69,7 @@ class Widget2 notfinal void checkPalette() { if (mPaletteOffset < 0 || mPaletteOffset - >= THEME_PALETTES * Theme::THEME_COLORS_END) + >= THEME_PALETTES * ThemeColorId::THEME_COLORS_END) { mPaletteOffset = 0; } |