From cca4330918c0964e7664c759bca7ad33e1d4b2f9 Mon Sep 17 00:00:00 2001 From: Piotr Tomiak Date: Tue, 26 Mar 2024 13:44:02 +0100 Subject: [PATCH] IDEA-349285 Glitches on Quick docs when using dark theme GitOrigin-RevId: 09bf2300964b4f586fa23ecc85d4eb210cb094fd --- .../intellij/lang/documentation/ide/ui/DocumentationUI.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/lang/documentation/ide/ui/DocumentationUI.kt b/platform/lang-impl/src/com/intellij/lang/documentation/ide/ui/DocumentationUI.kt index 4ee9d1708de7..f06657386f2b 100644 --- a/platform/lang-impl/src/com/intellij/lang/documentation/ide/ui/DocumentationUI.kt +++ b/platform/lang-impl/src/com/intellij/lang/documentation/ide/ui/DocumentationUI.kt @@ -101,9 +101,11 @@ internal class DocumentationUI( trackDocumentationBackgroundChange(this) { // Force update of the background color for scroll pane @Suppress("UseJBColor") - scrollPane.viewport.background = Color(it.rgb) - locationLabel.background = it - switcherToolbarComponent.background = it + val color = Color(it.rgb) + editorPane.parent.background = color + scrollPane.viewport.background = color + locationLabel.background = color + switcherToolbarComponent.background = color } browser.ui = this