Change Skin -> Theme

To better align with commonly used terminology in industry renamed all references from Skin -> Theme.
This commit is contained in:
Mitchel Sellers
2019-05-12 23:38:58 -05:00
parent 54b769381b
commit f4aa88a529
47 changed files with 336 additions and 334 deletions

View File

@ -2,9 +2,9 @@
{
public class Constants
{
public const string DefaultPage = "Oqtane.Client.Shared.Skin, Oqtane.Client";
public const string DefaultPage = "Oqtane.Client.Shared.Theme, Oqtane.Client";
public const string DefaultContainer = "Oqtane.Client.Shared.Container, Oqtane.Client";
public const string DefaultAdminContainer = "Oqtane.Client.Skins.AdminContainer, Oqtane.Client";
public const string DefaultAdminContainer = "Oqtane.Client.Themes.AdminContainer, Oqtane.Client";
public const string DefaultSettingsControl = "Oqtane.Client.Modules.Admin.ModuleSettings.Index, Oqtane.Client";
public const string PageManagementModule = "Oqtane.Client.Modules.Admin.Pages, Oqtane.Client";
public const string DefaultControl = "Index";

View File

@ -13,7 +13,7 @@
@inject IUserService UserService
@inject IModuleService ModuleService
@inject IModuleDefinitionService ModuleDefinitionService
@inject ISkinService SkinService
@inject IThemeService ThemeService
@DynamicComponent
@ -64,7 +64,7 @@
private async Task Refresh()
{
List<ModuleDefinition> moduledefinitions = await ModuleDefinitionService.GetModuleDefinitionsAsync();
List<Models.Skin> skins = await SkinService.GetSkinsAsync();
List<Models.Theme> themes = await ThemeService.GetThemesAsync();
bool reload = false;
if (PageState == null)

View File

@ -11,16 +11,16 @@
{
DynamicComponent = builder =>
{
Type skinType = Type.GetType(PageState.Page.SkinType);
if (skinType != null)
Type themeType = Type.GetType(PageState.Page.ThemeType);
if (themeType != null)
{
builder.OpenComponent(0, skinType);
builder.OpenComponent(0, themeType);
builder.CloseComponent();
}
else
{
// skin does not exist with type specified
}
// theme does not exist with type specified
}
};
}
}