[DE mobile] Fix Bug 65783

This commit is contained in:
SergeyEzhin
2024-04-16 16:15:49 +03:00
parent 1a0fd18801
commit 30c4fc8ecd
3 changed files with 20 additions and 1 deletions

View File

@ -77,4 +77,12 @@
//--canvas-scroll-thumb-target-hover: #404040;
//--canvas-scroll-thumb-target-pressed: #404040;
}
.theme-type-dark.pdf-view, .theme-dark.pdf-view {
--brand-word: var(--brand-form);
&__android {
--toolbar-background: var(--background-primary);
}
}
}

View File

@ -71,6 +71,13 @@
//--canvas-scroll-thumb-target: #c0c0c0;
//--canvas-scroll-thumb-target-hover: #f7f7f7;
//--canvas-scroll-thumb-target-pressed: #f7f7f7;
.pdf-view {
--brand-word: var(--brand-form);
&__android {
--toolbar-background: var(--brand-word);
}
}
}
@brand-word: var(--brand-word);

View File

@ -465,7 +465,11 @@ class MainController extends Component {
changeEditorBrandColorForPdf() {
const bodyElement = document.body;
bodyElement.style.setProperty('--brand-word', 'var(--brand-form)');
bodyElement.classList.add('pdf-view');
if(Device.android) {
bodyElement.classList.add('pdf-view__android');
}
}
applyMode (appOptions) {