Skip to content

Commit

Permalink
[DE mobile] Fix Bug 65783
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyEzhin committed Apr 16, 2024
1 parent 1a0fd18 commit 30c4fc8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions apps/common/mobile/resources/less/colors-table-dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
7 changes: 7 additions & 0 deletions apps/common/mobile/resources/less/colors-table.less
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 5 additions & 1 deletion apps/documenteditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30c4fc8

Please sign in to comment.