From a55e7e257730e6cee115f407e31f8a91dc9ad447 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Dec 2015 23:20:02 +0300 Subject: Move theme related constants into separate file. --- src/gui/theme.cpp | 2 ++ src/gui/theme.h | 2 -- src/gui/widgets/widget2.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 067ececda..c98e463dc 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -27,6 +27,8 @@ #include "configuration.h" #include "graphicsmanager.h" +#include "const/gui/theme.h" + #include "gui/skin.h" #include "gui/themeinfo.h" diff --git a/src/gui/theme.h b/src/gui/theme.h index 2332db1da..2afb41da7 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -46,8 +46,6 @@ class Theme; struct ThemeInfo; -const int THEME_PALETTES = 5; - extern Theme *theme; class Theme final : public Palette, diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h index 5955397fc..b8c0163d2 100644 --- a/src/gui/widgets/widget2.h +++ b/src/gui/widgets/widget2.h @@ -21,8 +21,9 @@ #ifndef GUI_WIDGETS_WIDGET2_H #define GUI_WIDGETS_WIDGET2_H -#include "gui/themecolorsidoperators.h" +#include "const/gui/theme.h" +#include "gui/themecolorsidoperators.h" #include "gui/theme.h" class Widget; -- cgit v1.2.3-60-g2f50