From f9a705efe0e8c6af87edf75c61c5c83332482a65 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 16 Jun 2021 20:11:55 +0300 Subject: [PATCH] [desktop] send theme type to native app --- apps/common/main/lib/controller/Desktop.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 0efe310ff..15367696b 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -246,7 +246,9 @@ define([ 'modal:show': _onModalDialog.bind(this, 'open'), 'modal:close': _onModalDialog.bind(this, 'close') , 'uitheme:changed' : function (name) { - native.execCommand("uitheme:changed", name); + var theme = Common.UI.Themes.get(name); + if ( theme ) + native.execCommand("uitheme:changed", JSON.stringify({name:name, type:theme.type})); } }); }