Bug 613037 - add common windows themes to default themes list. r=neil, a=2.0.

This commit is contained in:
Jim Mathies 2011-02-05 14:22:08 -06:00
parent eadfd13629
commit 7da1154530

View File

@ -359,6 +359,7 @@ struct THEMELIST {
int type;
};
// When adding themes, update sIsDefaultWindowsTheme settings below.
const THEMELIST knownThemes[] = {
{ L"aero.msstyles", WINTHEME_AERO },
{ L"luna.msstyles", WINTHEME_LUNA },
@ -431,7 +432,10 @@ nsUXThemeData::UpdateNativeThemeInfo()
if (theme == WINTHEME_UNRECOGNIZED)
return;
if (theme == WINTHEME_AERO || theme == WINTHEME_LUNA)
if (theme == WINTHEME_AERO ||
theme == WINTHEME_LUNA ||
theme == WINTHEME_ZUNE ||
theme == WINTHEME_ROYALE)
sIsDefaultWindowsTheme = PR_TRUE;
if (theme != WINTHEME_LUNA) {