mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
IJPL-191740 Island themes: Wrong background in tables
GitOrigin-RevId: 1044dcc872709946b31a8c92586e0febf69b06fc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
833c1340b3
commit
844d3c2c32
@@ -3,10 +3,14 @@ package com.intellij.database.run.ui.grid;
|
||||
import com.intellij.database.run.ui.ResultViewWithRows;
|
||||
import com.intellij.idea.AppMode;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.application.impl.InternalUICustomization;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.Trinity;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.ui.*;
|
||||
import com.intellij.ui.CellRendererPanel;
|
||||
import com.intellij.ui.ExpandedItemRendererComponentWrapper;
|
||||
import com.intellij.ui.Graphics2DDelegate;
|
||||
import com.intellij.ui.Gray;
|
||||
import com.intellij.util.SingleAlarm;
|
||||
import com.intellij.util.containers.FactoryMap;
|
||||
import com.intellij.util.containers.SLRUMap;
|
||||
@@ -167,6 +171,11 @@ public final class TableCellImageCache {
|
||||
add(originalComponent);
|
||||
}
|
||||
|
||||
InternalUICustomization customization = InternalUICustomization.getInstance();
|
||||
if (customization != null) {
|
||||
customization.configureRendererComponent(this);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -100,6 +100,8 @@ open class InternalUICustomization {
|
||||
|
||||
open fun createCustomToolWindowPaneHolder(): JPanel = JPanel()
|
||||
|
||||
open fun configureRendererComponent(component: JComponent) {}
|
||||
|
||||
open val isCustomPaintersAllowed: Boolean = false
|
||||
|
||||
open fun attachIdeFrameBackgroundPainter(frame: IdeFrame, glassPane: IdeGlassPane): Unit = Unit
|
||||
|
||||
@@ -178,6 +178,12 @@ internal class IslandsUICustomization : InternalUICustomization() {
|
||||
return null
|
||||
}
|
||||
|
||||
override fun configureRendererComponent(component: JComponent) {
|
||||
if (isIslandsEnabled) {
|
||||
ClientProperty.putRecursive(component, IdeBackgroundUtil.NO_BACKGROUND, true)
|
||||
}
|
||||
}
|
||||
|
||||
override fun installEditorBackground(component: JComponent) {
|
||||
if (isManyIslandEnabled) {
|
||||
ClientProperty.putRecursive(component, IdeBackgroundUtil.NO_BACKGROUND, true)
|
||||
|
||||
Reference in New Issue
Block a user