Merge pull request #13906 from abpframework/liangshiwei/cli

Add Theme to Symbols
pull/13910/head
Engincan VESKE 3 years ago committed by GitHub
commit fb048a1953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -194,12 +194,16 @@ public abstract class AppTemplateBase : TemplateInfo
return;
}
if (context.BuildArgs.Theme != Theme.NotSpecified)
{
context.Symbols.Add(context.BuildArgs.Theme.Value.ToString().ToUpper());
}
if (context.BuildArgs.Theme == Theme.LeptonX)
{
context.Symbols.Add("LEPTONX");
steps.Add(new ChangeThemeStyleStep());
}
if (IsDefaultThemeForTemplate(context.BuildArgs.Theme.Value))
{
return;

@ -35,10 +35,14 @@ public abstract class MicroserviceTemplateBase : TemplateInfo
{
return;
}
if (context.BuildArgs.Theme != Theme.NotSpecified)
{
context.Symbols.Add(context.BuildArgs.Theme.Value.ToString().ToUpper());
}
if (context.BuildArgs.Theme == Theme.LeptonX)
{
context.Symbols.Add("LEPTONX");
steps.Add(new ChangeThemeStyleStep());
return;
}

Loading…
Cancel
Save