Deleting a Metronic Theme
Metronic theme currently has 12 different themes and AspNet Zero includes them all. However, you might want to use only specific themes and delete some others. This document explains how to delete a theme option from AspNet Zero. In this document, deleting Theme2 will be explained. You can apply same steps to delete other theme options.
.Net Part
Go to
*Application.Sharedproject. OpenAppConsts.csand delete Theme2 field.Go to
*.Web.Coreproject.- Delete
Theme2UiCustomizer.cs - Open
UiThemeCustomizerFactory.csand delete Theme2 code parts inGetUiCustomizerInternalfunction.
- Delete
Go to
*.Coreproject. OpenAppSettingProvider.csand deleteGetTheme2SettingsfunctionAngular Part
Go to src-> app -> shared -> layout folder
- Go to themes folder. Delete theme2 folder
- Go to theme-selection folder. Open
theme-selection-panel.component.htmland delete Theme2 code parts.
Go to src-> app -> shared -> helper folder. Open
DynamicResourceHelpers.tsand delete Theme2 code parts.Go to src -> app -> admin folder
- Open
admin.module.tsand delete Theme2 code parts. - Go to ui-customization folder
- Delete
theme2-theme-ui-settings.component.ts. - Delete
theme2-theme-ui-settings.component.html. - Open
ui-customization.component.htmland delete Theme2 code parts.
- Delete
- Open
Go to src -> app . Open
app.module.tsand delete Theme2 code parts.Go to src -> app. Open
app.component.htmland delete Theme2 code parts.Open
bundles.jsand delete Theme2 bundles.
Just note that, if you are deleting a theme on an already published application, don't forget to delete records with the name equals to "App.UiManagement.Theme" and name starts with "Theme2.*" in AbpSettings table.