13 HBRUSH _hBackgroundBrush;
15 HBRUSH _hInputFieldBrush;
20 wstring _currentTheme;
21 long _currentThemeIndex;
23 wstring _savedThemeFilePath;
27 void setTheme(
const wstring& themeName, COLORREF captionBackgroundStartColor, COLORREF captionBackgroundEndColor, COLORREF captionForegroundColor);
101 void getTheme(wstring& themeName,
long& themeIndex);
123 HFONT
setFont(
WinHandle hWnd,
long fontSize, BOOL isBold = FALSE, BOOL isItalic = FALSE, BOOL isUnderlined = FALSE,
const wstring& fontName = L
"Arial");
HWND WinHandle
Definition Common.h:16
HDC DCHandle
Definition Common.h:17
ButtonType
Definition Common.h:161
static COLORREF ButtonOrangeBackgroundStartColor
Definition Theme.h:197
static COLORREF BackgroundColor
Definition Theme.h:126
static COLORREF ButtonGrayForegroundColor
Definition Theme.h:167
static COLORREF ComponentForegroundColor
Definition Theme.h:132
static COLORREF ButtonDangerBackgroundStartColor
Definition Theme.h:153
static COLORREF ButtonBackgroundEndColor
Definition Theme.h:142
static COLORREF ButtonRedBackgroundStartColor
Definition Theme.h:209
static COLORREF CaptionForegroundColor
Definition Theme.h:130
static COLORREF ComponentBackgroundColor
Definition Theme.h:131
static COLORREF CaptionBackgroundEndColor
Definition Theme.h:129
static COLORREF ButtonRedBackgroundEndColor
Definition Theme.h:210
static COLORREF ButtonSilverForegroundColor
Definition Theme.h:207
static COLORREF ButtonBrownForegroundColor
Definition Theme.h:203
static COLORREF ButtonBlueBackgroundEndColor
Definition Theme.h:174
static COLORREF ButtonSuccessBackgroundEndColor
Definition Theme.h:158
static COLORREF ButtonRedForegroundColor
Definition Theme.h:211
static COLORREF ForegroundColor
Definition Theme.h:127
static COLORREF ButtonInfoBackgroundEndColor
Definition Theme.h:150
static COLORREF ButtonOrangeBackgroundEndColor
Definition Theme.h:198
static COLORREF ButtonLightBlueBackgroundEndColor
Definition Theme.h:178
static COLORREF GridAlternateForegroundColor
Definition Theme.h:137
static COLORREF ButtonIndigoBackgroundStartColor
Definition Theme.h:193
static COLORREF ScrollbarButtonBackgroundStartColor
Definition Theme.h:219
static COLORREF ButtonLightBlueBackgroundStartColor
Definition Theme.h:177
static COLORREF IconBackgroundColor
Definition Theme.h:138
static COLORREF ButtonTealBackgroundEndColor
Definition Theme.h:182
static COLORREF ButtonWarnBackgroundStartColor
Definition Theme.h:161
static COLORREF ButtonPrimaryForegroundColor
Definition Theme.h:147
static COLORREF ButtonSilverBackgroundStartColor
Definition Theme.h:205
static COLORREF ButtonLightGrayBackgroundEndColor
Definition Theme.h:170
static COLORREF ButtonSilverBackgroundEndColor
Definition Theme.h:206
HBRUSH createLabelBrush(DCHandle hDC)
Creates or retrieves a label brush.
static COLORREF ButtonDangerForegroundColor
Definition Theme.h:155
static COLORREF ButtonOrangeForegroundColor
Definition Theme.h:199
static COLORREF ButtonPinkForegroundColor
Definition Theme.h:191
static COLORREF DangerColor
Definition Theme.h:225
void ButtonTypeToColors(const ButtonType &btnType, COLORREF &startBkColor, COLORREF &endBkColor, COLORREF &color)
static COLORREF ButtonSuccessBackgroundStartColor
Definition Theme.h:157
static COLORREF ButtonBrownBackgroundEndColor
Definition Theme.h:202
static COLORREF HeaderBackgroundEndColor
Definition Theme.h:214
HBRUSH createInputFieldBrush(DCHandle hDC)
Creates or retrieves an input field brush.
static COLORREF ButtonBlueBackgroundStartColor
Definition Theme.h:173
static COLORREF ButtonGrayBackgroundStartColor
Definition Theme.h:165
static COLORREF ScrollbarTrackBackgroundColor
Definition Theme.h:217
static COLORREF ButtonTealBackgroundStartColor
Definition Theme.h:181
Theme()
Constructs a new Theme object.
static COLORREF ButtonBrownBackgroundStartColor
Definition Theme.h:201
static COLORREF ButtonGrayBackgroundEndColor
Definition Theme.h:166
void setDefaultFont(WinHandle hWnd)
Sets the default font for a window.
static COLORREF ButtonIndigoBackgroundEndColor
Definition Theme.h:194
static COLORREF ButtonCyanForegroundColor
Definition Theme.h:187
static COLORREF HeaderBackgroundStartColor
Definition Theme.h:213
static COLORREF ButtonSuccessForegroundColor
Definition Theme.h:159
HBRUSH createButtonBrush(DCHandle hDC)
Creates or retrieves a button brush.
static COLORREF ButtonLightBlueForegroundColor
Definition Theme.h:179
void getTheme(wstring &themeName, long &themeIndex)
static COLORREF SelectionForegroundColor
Definition Theme.h:135
static COLORREF ButtonForegroundColor
Definition Theme.h:143
static COLORREF ButtonCyanBackgroundStartColor
Definition Theme.h:185
static COLORREF ScrollbarButtonBackgroundEndColor
Definition Theme.h:220
static COLORREF ButtonDangerBackgroundEndColor
Definition Theme.h:154
static COLORREF DisabledForegroundColor
Definition Theme.h:133
static COLORREF ButtonPrimaryBackgroundStartColor
Definition Theme.h:145
static COLORREF LinkColor
Definition Theme.h:223
BOOL setDefaultTheme()
These functions are used to set the application theme - Must be called from the constructor of the Fr...
static COLORREF ButtonCyanBackgroundEndColor
Definition Theme.h:186
static COLORREF LineColor
Definition Theme.h:224
static COLORREF ButtonPinkBackgroundEndColor
Definition Theme.h:190
static COLORREF ButtonWarnForegroundColor
Definition Theme.h:163
static COLORREF GridAlternateBackgroundColor
Definition Theme.h:136
static COLORREF ButtonIndigoForegroundColor
Definition Theme.h:195
virtual ~Theme()
Destructor.
static Theme * GetInstance()
Returns a singleton instance of Theme.
static COLORREF ButtonInfoBackgroundStartColor
Definition Theme.h:149
static COLORREF ButtonBackgroundStartColor
Definition Theme.h:141
static COLORREF ScrollbarTrackForegroundColor
Definition Theme.h:218
static COLORREF ShadowColor
Definition Theme.h:226
static COLORREF HeaderForegroundColor
Definition Theme.h:215
static COLORREF ButtonTealForegroundColor
Definition Theme.h:183
static COLORREF SelectionBackgroundColor
Definition Theme.h:134
static COLORREF ButtonPrimaryBackgroundEndColor
Definition Theme.h:146
static COLORREF CaptionBackgroundStartColor
Definition Theme.h:128
static COLORREF ButtonLightGrayForegroundColor
Definition Theme.h:171
HFONT setFont(WinHandle hWnd, long fontSize, BOOL isBold=FALSE, BOOL isItalic=FALSE, BOOL isUnderlined=FALSE, const wstring &fontName=L"Arial")
Sets the font for a window with specified properties.
static COLORREF IconForegroundColor
Definition Theme.h:139
static COLORREF ButtonBlueForegroundColor
Definition Theme.h:175
static COLORREF ButtonWarnBackgroundEndColor
Definition Theme.h:162
static COLORREF ButtonPinkBackgroundStartColor
Definition Theme.h:189
static COLORREF ButtonInfoForegroundColor
Definition Theme.h:151
static COLORREF ScrollbarButtonForegroundColor
Definition Theme.h:221
HBRUSH createBackgroundBrush(DCHandle hDC)
Creates or retrieves a background brush.
static COLORREF ButtonLightGrayBackgroundStartColor
Definition Theme.h:169