MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / SetTheme

Method SetTheme

ColorCop/DarkStatusBar.cpp:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11END_MESSAGE_MAP()
12
13void CDarkStatusBar::SetTheme(bool dark) {
14 if (dark) {
15 m_clrBack = RGB(32, 32, 32);
16 m_clrText = RGB(220, 220, 220);
17 } else {
18 m_clrBack = RGB(240, 240, 240); // standard dialog background
19 m_clrText = RGB(0, 0, 0); // standard text
20 }
21
22 Invalidate();
23}
24
25void CDarkStatusBar::OnPaint() {
26 CPaintDC dc(this);

Callers 1

ApplyThemeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected