This commit is contained in:
owomomo 2020-01-31 20:13:41 +08:00
parent 935cdaf178
commit c830d2cc7d
3 changed files with 16 additions and 10 deletions

View File

@ -1268,14 +1268,14 @@ LRESULT CustomDraw (LPARAM lParam)
lplvcd->clrTextBk = RGB(248, 248, 255);
break;
case 1:
lplvcd->clrTextBk = RGB(216, 203, 253); break;
lplvcd->clrTextBk = CHEAT_1BYTE_BG; break;
case 2:
lplvcd->clrTextBk = RGB(195, 186, 253); break;
lplvcd->clrTextBk = CHEAT_2BYTE_BG; break;
case 3:
lplvcd->clrTextBk = RGB(176, 139, 252); break;
lplvcd->clrTextBk = CHEAT_3BYTE_BG; break;
case 4:
lplvcd->clrTextBk = RGB(175, 94, 253);
lplvcd->clrText = RGB(255, 255, 255); break; // use a more visual color in dark background
lplvcd->clrTextBk = CHEAT_4BYTE_BG;
lplvcd->clrText = CHEAT_4BYTE_TEXT; break; // use a more visual color in dark background
}
if(!IsSatisfied(lplvcd->nmcd.dwItemSpec))

View File

@ -37,4 +37,10 @@ extern POINT CalcSubWindowPos(HWND hDlg, POINT* conf);
// static int CALLBACK RamSearchItemSortFunc(LPARAM lp1, LPARAM lp2, LPARAM lpSort);
// extern void UpdateSortColumnIcon(HWND hwndListView, int sortColumn, bool sortAsc);
#define CHEAT_1BYTE_BG RGB(216, 203, 253)
#define CHEAT_2BYTE_BG RGB(195, 186, 253)
#define CHEAT_3BYTE_BG RGB(176, 139, 252)
#define CHEAT_4BYTE_BG RGB(175, 94, 253)
#define CHEAT_4BYTE_TEXT RGB(255, 255, 255)
#endif

View File

@ -1219,14 +1219,14 @@ INT_PTR CALLBACK RamWatchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_DODEFAULT);
return TRUE;
case 1:
lplvcd->clrTextBk = RGB(216, 203, 253); break;
lplvcd->clrTextBk = CHEAT_1BYTE_BG; break;
case 2:
lplvcd->clrTextBk = RGB(195, 186, 253); break;
lplvcd->clrTextBk = CHEAT_2BYTE_BG; break;
case 3:
lplvcd->clrTextBk = RGB(176, 139, 252); break;
lplvcd->clrTextBk = CHEAT_3BYTE_BG; break;
case 4:
lplvcd->clrTextBk = RGB(175, 94, 253);
lplvcd->clrText = RGB(255, 255, 255); break; // use a more visual color in dark background
lplvcd->clrTextBk = CHEAT_4BYTE_BG;
lplvcd->clrText = CHEAT_4BYTE_TEXT; break; // use a more visual color in dark background
}
SetWindowLongPtr(hDlg, DWLP_MSGRESULT, CDRF_NEWFONT);
}