mirror of
https://github.com/reactos/reactos.git
synced 2025-03-30 17:10:22 +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)
|
GetColor(HWND hwndDlg, GLOBALS* g, INT nButton)
|
||||||
{
|
{
|
||||||
CHOOSECOLOR cc;
|
CHOOSECOLOR cc;
|
||||||
COLORREF crCustom[16] = { 0 };
|
|
||||||
COLORREF crColor;
|
COLORREF crColor;
|
||||||
INT ID = 0;
|
INT ID = 0;
|
||||||
INT ColorIndex = 0;
|
INT ColorIndex = 0;
|
||||||
|
@ -317,7 +316,7 @@ GetColor(HWND hwndDlg, GLOBALS* g, INT nButton)
|
||||||
cc.hwndOwner = hwndDlg;
|
cc.hwndOwner = hwndDlg;
|
||||||
cc.hInstance = NULL;
|
cc.hInstance = NULL;
|
||||||
cc.rgbResult = crColor;
|
cc.rgbResult = crColor;
|
||||||
cc.lpCustColors = crCustom;
|
cc.lpCustColors = g->crCustom;
|
||||||
cc.Flags = CC_ANYCOLOR | CC_FULLOPEN | CC_RGBINIT;
|
cc.Flags = CC_ANYCOLOR | CC_FULLOPEN | CC_RGBINIT;
|
||||||
cc.lCustData = 0;
|
cc.lCustData = 0;
|
||||||
cc.lpfnHook = NULL;
|
cc.lpfnHook = NULL;
|
||||||
|
|
|
@ -129,6 +129,8 @@ typedef struct tagGLOBALS
|
||||||
|
|
||||||
HBITMAP hbmpThemePreview;
|
HBITMAP hbmpThemePreview;
|
||||||
HDC hdcThemePreview;
|
HDC hdcThemePreview;
|
||||||
|
|
||||||
|
COLORREF crCustom[16];
|
||||||
} GLOBALS;
|
} GLOBALS;
|
||||||
|
|
||||||
/* prototypes for theme.c */
|
/* prototypes for theme.c */
|
||||||
|
|
Loading…
Reference in a new issue