Found the solution.
-- app.component.cs --
import { ThemeService, StyleNames, lightTheme } from '@volosoft/ngx-lepton-x';
export class AppComponent {
constructor(private themeService: ThemeService) {
if (this.themeService.selectedStyle.styleName != StyleNames.Light) {
this.themeService.setTheme(lightTheme);
}
}
}
Hi, I am also using Angular UI, it works at my end. Could you please check your solution explorer at backend it has solution
***.HttpAPI.Host
at the end of list.
Yes. You should test in Chrome Incognito Window.
Thanks for your reply. But I am using Angular UI, and that does not work.
ABP commercial has LeptonX theme as its default theme. There are 4 styles in LeptonX: Light, Dark, Dim, and System. My app has Angular UI. And the default theme style seems to be System - it changes to Light or Dark automatically when the OS settings change.
I cannot find any documentation on how to change this behavior. I want to fix the style to Light mode always in Angular UI.