mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[DESK] Remember icon picker custom colors between invocations (#6215)
This makes editing a theme slightly less annoying, if you can define custom colors.
This commit is contained in:
parent
48909364db
commit
83bc98f96a
2 changed files with 3 additions and 2 deletions
|
@ -286,7 +286,6 @@ static BOOL
|
|||
GetColor(HWND hwndDlg, GLOBALS* g, INT nButton)
|
||||
{
|
||||
CHOOSECOLOR cc;
|
||||
COLORREF crCustom[16] = { 0 };
|
||||
COLORREF crColor;
|
||||
INT ID = 0;
|
||||
INT ColorIndex = 0;
|
||||
|
@ -317,7 +316,7 @@ GetColor(HWND hwndDlg, GLOBALS* g, INT nButton)
|
|||
cc.hwndOwner = hwndDlg;
|
||||
cc.hInstance = NULL;
|
||||
cc.rgbResult = crColor;
|
||||
cc.lpCustColors = crCustom;
|
||||
cc.lpCustColors = g->crCustom;
|
||||
cc.Flags = CC_ANYCOLOR | CC_FULLOPEN | CC_RGBINIT;
|
||||
cc.lCustData = 0;
|
||||
cc.lpfnHook = NULL;
|
||||
|
|
|
@ -129,6 +129,8 @@ typedef struct tagGLOBALS
|
|||
|
||||
HBITMAP hbmpThemePreview;
|
||||
HDC hdcThemePreview;
|
||||
|
||||
COLORREF crCustom[16];
|
||||
} GLOBALS;
|
||||
|
||||
/* prototypes for theme.c */
|
||||
|
|
Loading…
Reference in a new issue