summaryrefslogtreecommitdiff
path: root/src/modules/clist
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/clist')
-rw-r--r--src/modules/clist/clc.h1
-rw-r--r--src/modules/clist/clcutils.cpp16
2 files changed, 16 insertions, 1 deletions
diff --git a/src/modules/clist/clc.h b/src/modules/clist/clc.h
index ba8bee42d2..35c3a4b004 100644
--- a/src/modules/clist/clc.h
+++ b/src/modules/clist/clc.h
@@ -106,7 +106,6 @@ int fnRowHitTest(struct ClcData *dat, int y);
/* clcopts.c */
int ClcOptInit(WPARAM wParam, LPARAM lParam);
-DWORD GetDefaultExStyle(void);
void GetFontSetting(int i, LOGFONTA *lf, COLORREF *colour);
/* clistmenus.c */
diff --git a/src/modules/clist/clcutils.cpp b/src/modules/clist/clcutils.cpp
index 87222c1ce1..50c2e45b0b 100644
--- a/src/modules/clist/clcutils.cpp
+++ b/src/modules/clist/clcutils.cpp
@@ -737,6 +737,22 @@ void fnLoadClcOptions(HWND hwnd, struct ClcData *dat, BOOL bFirst)
dat->quickSearchColour = db_get_dw(NULL, "CLC", "QuickSearchColour", CLCDEFAULT_QUICKSEARCHCOLOUR);
dat->useWindowsColours = db_get_b(NULL, "CLC", "UseWinColours", CLCDEFAULT_USEWINDOWSCOLOURS);
+ if (cli.hwndContactTree != NULL && hwnd != cli.hwndContactTree) {
+ dat->bkChanged = true; // block custom background
+ dat->bkColour = GetSysColor(COLOR_WINDOW);
+ if (dat->hBmpBackground) {
+ DeleteObject(dat->hBmpBackground);
+ dat->hBmpBackground = NULL;
+ }
+
+ dat->greyoutFlags = 0;
+ dat->leftMargin = 4;
+ dat->groupIndent = 10;
+
+ for (int i=0; i <= FONTID_MAX; i++)
+ dat->fontInfo[i].colour = GetSysColor(COLOR_WINDOWTEXT);
+ }
+
if (!dat->bkChanged) {
dat->bkColour = db_get_dw(NULL, "CLC", "BkColour", CLCDEFAULT_BKCOLOUR);
if (dat->hBmpBackground) {