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);
|
||||
/* Erase the background */
|
||||
FillRect(dcMem, &ps.rcPaint, GetStockObject(LTGRAY_BRUSH));
|
||||
FillRect(dcMem, &ps.rcPaint, GetSysColorBrush(COLOR_3DFACE));
|
||||
|
||||
if(Globals.bAnalog)
|
||||
AnalogClock(dcMem, Globals.MaxX, Globals.MaxY, Globals.bSeconds, Globals.bWithoutTitle);
|
||||
|
|
|
@ -32,16 +32,11 @@
|
|||
#include "windows.h"
|
||||
#include "winclock.h"
|
||||
|
||||
#define Black RGB(0,0,0)
|
||||
#define Gray RGB(128,128,128)
|
||||
#define LtGray RGB(192,192,192)
|
||||
#define White RGB(255,255,255)
|
||||
|
||||
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;
|
||||
#define FaceColor (GetSysColor(COLOR_3DFACE))
|
||||
#define HandColor (GetSysColor(COLOR_3DHIGHLIGHT))
|
||||
#define TickColor (GetSysColor(COLOR_3DHIGHLIGHT))
|
||||
#define ShadowColor (GetSysColor(COLOR_3DDKSHADOW))
|
||||
#define BackgroundColor (GetSysColor(COLOR_3DFACE))
|
||||
|
||||
static const int SHADOW_DEPTH = 2;
|
||||
|
||||
|
|
Loading…
Reference in New Issue