Browse Source
Merge pull request #14111 from abpframework/auto-merge/rel-6-0/1363
Merge branch dev with rel-6.0
pull/14115/head
Enis Necipoglu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
14 additions and
0 deletions
-
docs/en/UI/Angular/Theme-Configurations.md
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs
-
framework/src/Volo.Abp.ObjectExtending/Volo/Abp/ObjectExtending/Modularity/ModuleExtensionConfigurationHelper.cs
|
|
|
@ -0,0 +1,3 @@ |
|
|
|
# Angular UI: Theme Configurations |
|
|
|
|
|
|
|
> This document is in draft version. |
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -174,6 +174,11 @@ public static class ModuleExtensionConfigurationHelper |
|
|
|
property.DefaultValue = propertyConfig.DefaultValue; |
|
|
|
property.DefaultValueFactory = propertyConfig.DefaultValueFactory; |
|
|
|
property.Lookup = propertyConfig.UI.Lookup; |
|
|
|
property.Configuration.Clear(); |
|
|
|
foreach (var configuration in propertyConfig.Configuration) |
|
|
|
{ |
|
|
|
property.Configuration[configuration.Key] = configuration.Value; |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
} |
|
|
|
|