mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-11 17:37:22 +10:00
Skin: Add support for Immersive* color names
This commit is contained in:
@@ -405,7 +405,7 @@ void ShowMetroColorViewer( void )
|
||||
if (fout) fprintf(fout,"%02X%02X%02X%02X %S\n",(color>>24)&0xFF,color&0xFF,(color>>8)&0xFF,(color>>16)&0xFF,name);
|
||||
#endif
|
||||
MetroColor mc;
|
||||
mc.name=name;
|
||||
mc.name=text;
|
||||
mc.NAME=mc.name;
|
||||
mc.NAME.MakeUpper();
|
||||
mc.type=type;
|
||||
|
||||
@@ -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