mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Merge pull request 'For bug 69113' (#211) from feature/for-bug-69113 into develop
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-apps/pulls/211
This commit is contained in:
@ -220,6 +220,10 @@ void CMainWindow::applyTheme(const std::wstring& theme)
|
||||
m_pMainPanel->setProperty("uithemetype", GetCurrentTheme().stype());
|
||||
for (int i(m_pTabs->count()); !(--i < 0);) {
|
||||
CAscTabData& _doc = *m_pTabs->panel(i)->data();
|
||||
if ( _doc.isViewType(cvwtSimple) ) {
|
||||
QJsonObject json{{"theme", QString::fromStdWString(theme)}, {"type", GetCurrentTheme().stype()}};
|
||||
AscAppManager::sendCommandTo(m_pTabs->panel(i)->cef(), L"uitheme:changed", Utils::stringifyJson(json).toStdWString());
|
||||
} else
|
||||
if ( _doc.isViewType(cvwtEditor) && !_doc.closed() ) {
|
||||
AscAppManager::sendCommandTo(m_pTabs->panel(i)->cef(), L"uitheme:changed", theme);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user