mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-15 05:08:31 +10:00
Skin: Add support for Immersive* color names
This commit is contained in:
@@ -375,7 +375,10 @@ COLORREF MenuSkin::GetMetroColor( const wchar_t *names ) const
|
||||
if (GetImmersiveUserColorSetPreference!=NULL)
|
||||
{
|
||||
wchar_t text[256];
|
||||
Sprintf(text,_countof(text),L"Immersive%s",name);
|
||||
if (wcsncmp(name,L"Immersive",9)==0)
|
||||
wcscpy_s(text,name);
|
||||
else
|
||||
Sprintf(text,_countof(text),L"Immersive%s",name);
|
||||
int type=GetImmersiveColorTypeFromName(text);
|
||||
data.colorType=type<0?-1:type;
|
||||
if (type>=0)
|
||||
|
||||
Reference in New Issue
Block a user