Skip to content

Commit e2ff745

Browse files
committed
Skin: Add support for Immersive* color names
1 parent fbcf855 commit e2ff745

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Src/Setup/Utility/MetroColorViewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void ShowMetroColorViewer( void )
405405
if (fout) fprintf(fout,"%02X%02X%02X%02X %S\n",(color>>24)&0xFF,color&0xFF,(color>>8)&0xFF,(color>>16)&0xFF,name);
406406
#endif
407407
MetroColor mc;
408-
mc.name=name;
408+
mc.name=text;
409409
mc.NAME=mc.name;
410410
mc.NAME.MakeUpper();
411411
mc.type=type;

Src/StartMenu/StartMenuDLL/SkinManager.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ COLORREF MenuSkin::GetMetroColor( const wchar_t *names ) const
375375
if (GetImmersiveUserColorSetPreference!=NULL)
376376
{
377377
wchar_t text[256];
378-
Sprintf(text,_countof(text),L"Immersive%s",name);
378+
if (wcsncmp(name,L"Immersive",9)==0)
379+
wcscpy_s(text,name);
380+
else
381+
Sprintf(text,_countof(text),L"Immersive%s",name);
379382
int type=GetImmersiveColorTypeFromName(text);
380383
data.colorType=type<0?-1:type;
381384
if (type>=0)

0 commit comments

Comments
 (0)