#include "common.h" #include "material/MaterialTheme.h" #include "custom/CustomTheme.h" #include "ThemeFactory.h" std::unique_ptr ThemeFactory::CreateFromThemeInfo(const ThemeInfo* themeInfo) const { switch (themeInfo->GetType()) { case ThemeType::Material: { return std::make_unique( themeInfo->GetFolderName(), themeInfo->GetPrimaryColor(), themeInfo->GetIsDarkTheme()); } case ThemeType::Custom: { return std::make_unique( themeInfo->GetFolderName(), themeInfo->GetPrimaryColor(), themeInfo->GetIsDarkTheme()); } default: { return nullptr; } } }