MythTV master
mythuithemehelper.h
Go to the documentation of this file.
1#ifndef MYTHUITHEMEHELPER_H
2#define MYTHUITHEMEHELPER_H
3
4// MythTV
5#include "themeinfo.h"
6
7static constexpr const char* DEFAULT_UI_THEME { "MythCenter-wide" };
8static constexpr const char* FALLBACK_UI_THEME { "Terra" };
9
11{
12 public:
13 void InitThemeHelper();
14 QString FindThemeDir(const QString& ThemeName, bool Fallback = true);
15 QString FindMenuThemeDir(const QString& MenuName);
16 bool FindThemeFile(QString& Path);
17 QString GetThemeDir();
18 QString GetThemeName();
19 QStringList GetThemeSearchPath();
20 QString GetMenuThemeDir();
21 QSize GetBaseSize() const;
22 QList<ThemeInfo> GetThemes(ThemeType Type);
23
24 private:
25 QStringList m_searchPaths;
28 QString m_themename;
30 QSize m_baseSize { 800, 600 };
31 bool m_isWide { false };
32};
33
34#endif
QStringList m_searchPaths
#define MUI_PUBLIC
Definition: mythuiexp.h:9
static constexpr const char * FALLBACK_UI_THEME
static constexpr const char * DEFAULT_UI_THEME
ThemeType
Definition: themeinfo.h:13