Skip to content

Commit

Permalink
[main] for bug 71814
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Dec 4, 2024
1 parent 4d2e40a commit 9bcaf19
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions apps/common/main/lib/util/htmlutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,22 @@ window.Common = {

!params.skipScaling && checkScaling();

if ( !!params.uitheme ) {
if ( !window.uitheme.id && !!params.uitheme ) {
if ( params.uitheme == 'default-dark' ) {
params.uitheme = 'theme-dark';
params.uithemetype = 'dark';
window.uitheme.id = 'theme-dark';
window.uitheme.type = 'dark';
} else
if ( params.uitheme == 'default-light' ) {
params.uitheme = 'theme-classic-light';
params.uithemetype = 'light';
window.uitheme.id = 'theme-classic-light';
window.uitheme.type = 'light';
} else
if ( params.uitheme == 'theme-system' ) {}
if ( params.uitheme == 'theme-system' ) {
window.uitheme.adapt_to_system_theme();
} else {
window.uitheme.id = params.uitheme;
}
}

!window.uitheme.id && params.uitheme && (window.uitheme.id = params.uitheme);
if ( !window.uitheme.id ) {
window.uitheme.adapt_to_system_theme();
} else {
Expand Down

0 comments on commit 9bcaf19

Please sign in to comment.