Initial commit

This commit is contained in:
Gericom
2025-11-22 17:21:45 +01:00
commit 5d6f67c612
517 changed files with 63025 additions and 0 deletions

View File

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