Commit b966b451 authored by Alexandre Julliard's avatar Alexandre Julliard

clock: Use system colors instead of hardcoded RGB values.

parent 68953bc5
...@@ -309,7 +309,7 @@ static VOID CLOCK_Paint(HWND hWnd) ...@@ -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 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment