mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] ceditorwindow: fix border color
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
"brand-draw": "#2a2a2a",
|
||||
|
||||
"window-background": "#404040",
|
||||
"window-border": "#2a2a2a",
|
||||
"window-border": "#616161",
|
||||
|
||||
"text-normal": "#d9d9d9",
|
||||
"text-pretty": "#d9d9d9",
|
||||
|
||||
@ -495,31 +495,30 @@ public:
|
||||
switch (panel()->data()->contentType()) {
|
||||
case AscEditorType::etDocument:
|
||||
background = GetColorValueByRole(ecrTabWordActive);
|
||||
border = background;
|
||||
// border = background;
|
||||
break;
|
||||
case AscEditorType::etPresentation:
|
||||
background = GetColorValueByRole(ecrTabSlideActive);
|
||||
border = background;
|
||||
// border = background;
|
||||
break;
|
||||
case AscEditorType::etSpreadsheet:
|
||||
background = GetColorValueByRole(ecrTabCellActive);
|
||||
border = background;
|
||||
// border = background;
|
||||
break;
|
||||
case AscEditorType::etDocumentMasterForm:
|
||||
case AscEditorType::etPdf:
|
||||
background = GetColorValueByRole(ecrTabViewerActive);
|
||||
border = background;
|
||||
// border = background;
|
||||
break;
|
||||
case AscEditorType::etDraw:
|
||||
background = GetColorValueByRole(ecrTabDrawActive);
|
||||
border = background;
|
||||
// border = background;
|
||||
break;
|
||||
default:
|
||||
background = GetColorValueByRole(ecrWindowBackground);
|
||||
border = GetColorValueByRole(ecrWindowBorder);
|
||||
// border = GetColorValueByRole(ecrWindowBorder);
|
||||
}
|
||||
if (GetCurrentTheme().id() == L"theme-gray" || GetCurrentTheme().id() == L"theme-white")
|
||||
border = GetColorValueByRole(ecrWindowBorder);
|
||||
border = GetColorValueByRole(ecrWindowBorder);
|
||||
|
||||
window->setWindowColors(QColor(QString::fromStdWString(background)), QColor(QString::fromStdWString(border)), window->isActiveWindow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user