[win-linux] ceditorwindow: fix border color

This commit is contained in:
SimplestStudio
2025-05-23 16:37:43 +03:00
parent 40a7459ea2
commit 1c92941175
2 changed files with 8 additions and 9 deletions

View File

@ -9,7 +9,7 @@
"brand-draw": "#2a2a2a",
"window-background": "#404040",
"window-border": "#2a2a2a",
"window-border": "#616161",
"text-normal": "#d9d9d9",
"text-pretty": "#d9d9d9",

View File

@ -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());
}