diff options
Diffstat (limited to 'yapp/popwin.cpp')
-rw-r--r-- | yapp/popwin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yapp/popwin.cpp b/yapp/popwin.cpp index 64496c8..010da7a 100644 --- a/yapp/popwin.cpp +++ b/yapp/popwin.cpp @@ -183,7 +183,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa //pwd->barBrush = CreateSolidBrush(pd->colorBack / 2); // make sidebar a dark version of the bg
//DWORD darkBg = (((pd->colorBack & 0xff0000) >> 1) & 0xff0000) + (((pd->colorBack & 0xff00) >> 1) & 0xff00) + (((pd->colorBack & 0xff) >> 1) & 0xff);
//DWORD darkBg = (pdColorBack >> 1) & 0x7f7f7f; // equivalent to above :)
-
+
DWORD darkBg = pd->colorBack - ((pd->colorBack >> 2) & 0x3f3f3f); // 3/4 of current individual RGB components
pwd->barBrush = CreateSolidBrush(darkBg); // make sidebar a dark version of the bg
pwd->underlineBrush = CreateSolidBrush(pd->colorBack); // make sidebar a dark version of the bg
|