Commit 5a2348f9 authored by Alexey.Musinov's avatar Alexey.Musinov

fix colors schemas (ios)

parent 98ddceeb
......@@ -5836,6 +5836,13 @@ function NativeOpenFile3(_params, documentInfo)
window["native"]["OnCallMenuEvent"](22000, stream); // ASC_MENU_EVENT_TYPE_ADVANCED_OPTIONS
});
_api.asc_registerCallback("asc_onSendThemeColorSchemes", function(schemes) {
var stream = global_memory_stream_menu;
stream["ClearNoAttack"]();
asc_WriteColorSchemes(schemes, stream);
window["native"]["OnCallMenuEvent"](2404, stream); // ASC_SPREADSHEETS_EVENT_TYPE_COLOR_SCHEMES
});
if (window.documentInfo["iscoauthoring"]) {
_api.isSpellCheckEnable = false;
......@@ -5884,8 +5891,15 @@ function NativeOpenFile3(_params, documentInfo)
var doc_bin = window.native.GetFileString(window.g_file_path);
_api.asc_nativeOpenFile(doc_bin);
if (null != _api.WordControl.m_oLogicDocument)
{
_api.sendColorThemes(_api.WordControl.m_oLogicDocument.theme);
}
if (_api.NativeAfterLoad)
{
_api.NativeAfterLoad();
}
}
}
Api = _api;
......@@ -6036,6 +6050,11 @@ Asc['asc_docs_api'].prototype.openDocument = function(sData)
this.isStartCoAuthoringOnEndLoad = false;
}
if (null != _api.WordControl.m_oLogicDocument)
{
_api.sendColorThemes(_api.WordControl.m_oLogicDocument.theme);
}
window["native"]["onEndLoadingFile"]();
var t = this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment