Skip to content

Commit

Permalink
Update settings.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Sep 13, 2023
1 parent 527a6ed commit 492dece
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src-ui/src/app/services/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,11 @@ export class SettingsService {
'auto'
)
} else {
if (!darkModeEnabled) {
this._renderer.setAttribute(
this.document.documentElement,
'data-bs-theme',
'light'
)
} else {
this._renderer.setAttribute(
this.document.documentElement,
'data-bs-theme',
'dark'
)
}
this._renderer.setAttribute(
this.document.documentElement,
'data-bs-theme',
darkModeEnabled ? 'dark' : 'light'
)
}

if (themeColor) {
Expand Down

0 comments on commit 492dece

Please sign in to comment.