mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
Fix: always reset theme classes on update appearance settings
This commit is contained in:
parent
5d80511b9b
commit
8d6e7ed477
@ -143,6 +143,8 @@ export class SettingsService {
|
|||||||
`${hsl.l * 100}%`
|
`${hsl.l * 100}%`
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
this._renderer.removeClass(this.document.body, 'primary-dark')
|
||||||
|
this._renderer.removeClass(this.document.body, 'primary-light')
|
||||||
document.documentElement.style.removeProperty('--pngx-primary')
|
document.documentElement.style.removeProperty('--pngx-primary')
|
||||||
document.documentElement.style.removeProperty('--pngx-primary-lightness')
|
document.documentElement.style.removeProperty('--pngx-primary-lightness')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user