diff --git a/src/univ/theme.cpp b/src/univ/theme.cpp index 2eb31fb1d4..aa8be8e2d9 100644 --- a/src/univ/theme.cpp +++ b/src/univ/theme.cpp @@ -95,13 +95,9 @@ wxThemeInfo::wxThemeInfo(Constructor c, } else // use native theme by default { - #if defined(__WXGTK__) - nameDefTheme = _T("gtk"); - #elif defined(__WXX11__) - nameDefTheme = _T("win32"); - #else - nameDefTheme = _T("win32"); - #endif +#ifdef wxUNIV_DEFAULT_THEME + nameDefTheme = _T(wxSTRINGIZE(wxUNIV_DEFAULT_THEME)); +#endif } wxTheme *theme = Create(nameDefTheme);