Browse Source

Merge pull request #14092 from abpframework/EngincanV/cli-theme-warning

CLI: Add warning for Angular theme selection
pull/14093/head
Alper Ebiçoğlu 4 years ago
committed by GitHub
parent
commit
940322a85e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docs/en/UI/Angular/Theme-Configurations.md
  2. 6
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs

3
docs/en/UI/Angular/Theme-Configurations.md

@ -0,0 +1,3 @@
# Angular UI: Theme Configurations
> This document is in draft version.

6
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs

@ -235,6 +235,12 @@ public class TemplateProjectBuilder : IProjectBuilder, ITransientDependency
if (args.Theme.HasValue)
{
Logger.LogInformation("Theme: " + args.Theme);
if (args.UiFramework == UiFramework.Angular && (args.Theme != AppTemplate.DefaultTheme || args.Theme != AppProTemplate.DefaultTheme))
{
Logger.LogWarning("You may need to make some additional changes for this theme. " +
"See the documentation for more information: https://docs.abp.io/en/abp/latest/UI/Angular/Theme-Configurations");
}
}
if(args.ThemeStyle.HasValue)

Loading…
Cancel
Save