Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing theme color doesn't work in AppSettings #61

Closed
AliAUZ opened this issue Aug 14, 2020 · 6 comments
Closed

changing theme color doesn't work in AppSettings #61

AliAUZ opened this issue Aug 14, 2020 · 6 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@AliAUZ
Copy link

AliAUZ commented Aug 14, 2020

Hi when I change the theme from 'light' to 'dark' in the settings.ts (default) it doesn't work
after save and reload the app (ng serve)
in the previous version, it was working

@nzbin
Copy link
Member

nzbin commented Aug 20, 2020

Is it the starter(ng add ng-matero) has this issue?

@AliAUZ
Copy link
Author

AliAUZ commented Aug 20, 2020

I have problem with "ng add ng-matero" so I had to download and try it
when I use the starter (ng add ng-matero) then I get these errors

811 error code ELIFECYCLE
812 error errno 1
813 error abcd@0.0.0 postinstall: ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points
813 error Exit status 1
814 error Failed at the abcd@0.0.0 postinstall script.
814 error This is probably not a problem with npm. There is likely additional logging output above.

and some error in the terminal

error2
error1

@AliAUZ
Copy link
Author

AliAUZ commented Aug 20, 2020

I've upgraded to ver 10 and now is working but the same issue for them color
If I change it in the

export const defaults: AppSettings = {
  navPos: 'side',
  theme: 'dark',
  dir: 'ltr',
  showHeader: true,
  headerPos: 'fixed',
  showUserPanel: true,
  sidenavOpened: true,
  sidenavCollapsed: false,
  language: 'en-US',
};

as well, still the same issue

@nzbin nzbin added the enhancement New feature or request label Aug 20, 2020
@AliAUZ
Copy link
Author

AliAUZ commented Aug 22, 2020

is there any solutions to this issue?

@nzbin
Copy link
Member

nzbin commented Sep 22, 2020

I have fixed this issue, thanks for your advice.

// Initialize project theme with options
this.receiveOptions(this.options);

@nzbin nzbin added bug Something isn't working and removed enhancement New feature or request labels Sep 22, 2020
@AliAUZ
Copy link
Author

AliAUZ commented Sep 22, 2020

Yes !! now it's working and the direction is working as well !! (" dir: 'ltr',")

for the language in the settings.ts if I set "language: 'en-US'," to "zh-CN"
and then it doesn't change the language in the startup

Do I need to set it anywhere else?
thx

@nzbin nzbin added the enhancement New feature or request label Mar 19, 2021
@nzbin nzbin closed this as completed Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants