clock: Use system colors instead of hardcoded RGB values.
This commit is contained in:
parent
68953bc5b3
commit
b966b451ff
|
@ -309,7 +309,7 @@ static VOID CLOCK_Paint(HWND hWnd)
|
||||||
|
|
||||||
SetViewportOrgEx(dcMem, -ps.rcPaint.left, -ps.rcPaint.top, NULL);
|
SetViewportOrgEx(dcMem, -ps.rcPaint.left, -ps.rcPaint.top, NULL);
|
||||||
/* Erase the background */
|
/* Erase the background */
|
||||||
FillRect(dcMem, &ps.rcPaint, GetStockObject(LTGRAY_BRUSH));
|
FillRect(dcMem, &ps.rcPaint, GetSysColorBrush(COLOR_3DFACE));
|
||||||
|
|
||||||
if(Globals.bAnalog)
|
if(Globals.bAnalog)
|
||||||
AnalogClock(dcMem, Globals.MaxX, Globals.MaxY, Globals.bSeconds, Globals.bWithoutTitle);
|
AnalogClock(dcMem, Globals.MaxX, Globals.MaxY, Globals.bSeconds, Globals.bWithoutTitle);
|
||||||
|
|
|
@ -32,16 +32,11 @@
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#include "winclock.h"
|
#include "winclock.h"
|
||||||
|
|
||||||
#define Black RGB(0,0,0)
|
#define FaceColor (GetSysColor(COLOR_3DFACE))
|
||||||
#define Gray RGB(128,128,128)
|
#define HandColor (GetSysColor(COLOR_3DHIGHLIGHT))
|
||||||
#define LtGray RGB(192,192,192)
|
#define TickColor (GetSysColor(COLOR_3DHIGHLIGHT))
|
||||||
#define White RGB(255,255,255)
|
#define ShadowColor (GetSysColor(COLOR_3DDKSHADOW))
|
||||||
|
#define BackgroundColor (GetSysColor(COLOR_3DFACE))
|
||||||
static const COLORREF FaceColor = LtGray;
|
|
||||||
static const COLORREF HandColor = White;
|
|
||||||
static const COLORREF TickColor = White;
|
|
||||||
static const COLORREF ShadowColor = Black;
|
|
||||||
static const COLORREF BackgroundColor = LtGray;
|
|
||||||
|
|
||||||
static const int SHADOW_DEPTH = 2;
|
static const int SHADOW_DEPTH = 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue