mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
815 B
26 lines
815 B
using System;
|
|
using Volo.Abp.AspNetCore.Components.Web.BasicTheme.Themes.Basic;
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Layout;
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Theming;
|
|
using Volo.Abp.DependencyInjection;
|
|
|
|
namespace Volo.Abp.AspNetCore.Components.Web.BasicTheme;
|
|
|
|
[ThemeName(Name)]
|
|
public class BasicTheme : ITheme, ITransientDependency
|
|
{
|
|
public const string Name = "Basic";
|
|
|
|
public virtual Type GetLayout(string name, bool fallbackToDefault = true)
|
|
{
|
|
switch (name)
|
|
{
|
|
case StandardLayouts.Application:
|
|
case StandardLayouts.Account:
|
|
case StandardLayouts.Empty:
|
|
return typeof(MainLayout);
|
|
default:
|
|
return fallbackToDefault ? typeof(MainLayout) : typeof(NullLayout);
|
|
}
|
|
}
|
|
}
|