From cccc76fbc5be630da1632359253b5859aefcb33f Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 27 Jul 2021 16:46:30 +0300 Subject: [PATCH] [themes] changed the order "Dark mode" button's icon --- apps/common/main/lib/view/Header.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 493d3c78a..e36be72ba 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -393,7 +393,7 @@ define([ function onContentThemeChangedToDark(isdark) { if ( this.btnContentMode ) { - this.btnContentMode.changeIcon(!isdark ? {curr: 'btn-mode-dark', next: 'btn-mode-light'} : {curr: 'btn-mode-light', next: 'btn-mode-dark'}); + this.btnContentMode.changeIcon(!isdark ? {curr: 'btn-mode-light', next: 'btn-mode-dark'} : {curr: 'btn-mode-dark', next: 'btn-mode-light'}); } } @@ -561,7 +561,7 @@ define([ $panelUsers.hide(); if ( !!window.DE ) { - var mode_cls = Common.UI.Themes.isContentThemeDark() ? 'btn-mode-dark' : 'btn-mode-light'; + var mode_cls = Common.UI.Themes.isContentThemeDark() ? 'btn-mode-light' : 'btn-mode-dark'; me.btnContentMode = createTitleButton('toolbar__icon icon--inverse ' + mode_cls, $html.findById('#slot-btn-mode')); }