Browse Source
Merge pull request #13906 from abpframework/liangshiwei/cli
Add Theme to Symbols
pull/13910/head
Engincan VESKE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
3 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Microservice/MicroserviceTemplateBase.cs
|
|
@ -194,12 +194,16 @@ public abstract class AppTemplateBase : TemplateInfo |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (context.BuildArgs.Theme != Theme.NotSpecified) |
|
|
|
|
|
{ |
|
|
|
|
|
context.Symbols.Add(context.BuildArgs.Theme.Value.ToString().ToUpper()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (context.BuildArgs.Theme == Theme.LeptonX) |
|
|
if (context.BuildArgs.Theme == Theme.LeptonX) |
|
|
{ |
|
|
{ |
|
|
context.Symbols.Add("LEPTONX"); |
|
|
|
|
|
steps.Add(new ChangeThemeStyleStep()); |
|
|
steps.Add(new ChangeThemeStyleStep()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (IsDefaultThemeForTemplate(context.BuildArgs.Theme.Value)) |
|
|
if (IsDefaultThemeForTemplate(context.BuildArgs.Theme.Value)) |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
|
|
|
@ -35,10 +35,14 @@ public abstract class MicroserviceTemplateBase : TemplateInfo |
|
|
{ |
|
|
{ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (context.BuildArgs.Theme != Theme.NotSpecified) |
|
|
|
|
|
{ |
|
|
|
|
|
context.Symbols.Add(context.BuildArgs.Theme.Value.ToString().ToUpper()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (context.BuildArgs.Theme == Theme.LeptonX) |
|
|
if (context.BuildArgs.Theme == Theme.LeptonX) |
|
|
{ |
|
|
{ |
|
|
context.Symbols.Add("LEPTONX"); |
|
|
|
|
|
steps.Add(new ChangeThemeStyleStep()); |
|
|
steps.Add(new ChangeThemeStyleStep()); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|