clock: Use system colors instead of hardcoded RGB values.

This commit is contained in:
Alexandre Julliard 2007-12-06 12:06:31 +01:00
parent 68953bc5b3
commit b966b451ff
2 changed files with 6 additions and 11 deletions

View File

@ -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);

View File

@ -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;