mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-189308 Many islands, light theme: gray backgrounds in tool windows instead of white
GitOrigin-RevId: 3e5f938cea57982eecc5ddeb5d30b0dc6cc621d5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0dd96c295f
commit
efe4bf2a2c
@@ -56,6 +56,7 @@ import com.intellij.util.PlatformUtils
|
||||
import com.intellij.util.cancelOnDispose
|
||||
import com.intellij.util.concurrency.AppExecutorUtil
|
||||
import com.intellij.util.messages.Topic
|
||||
import com.intellij.util.ui.JBUI
|
||||
import com.intellij.util.ui.TimerUtil
|
||||
import com.intellij.util.ui.UIUtil
|
||||
import kotlinx.coroutines.*
|
||||
@@ -480,7 +481,7 @@ class StructureViewWrapperImpl(
|
||||
if (myModuleStructureComponent == null && myStructureView == null) {
|
||||
val panel: JBPanelWithEmptyText = object : JBPanelWithEmptyText() {
|
||||
override fun getBackground(): Color {
|
||||
return UIUtil.getTreeBackground()
|
||||
return JBUI.CurrentTheme.ToolWindow.background()
|
||||
}
|
||||
}
|
||||
panel.emptyText.setText(LangBundle.message("panel.empty.text.no.structure"))
|
||||
@@ -548,7 +549,7 @@ class StructureViewWrapperImpl(
|
||||
|
||||
private fun createContentPanel(component: JComponent): ContentPanel {
|
||||
val panel = ContentPanel()
|
||||
panel.background = UIUtil.getTreeBackground()
|
||||
panel.background = JBUI.CurrentTheme.ToolWindow.background()
|
||||
panel.add(component, BorderLayout.CENTER)
|
||||
return panel
|
||||
}
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ internal class IslandsRoundedBorder(fillColor: (JComponent) -> Paint?) :
|
||||
|
||||
companion object {
|
||||
fun createToolWindowBorder(component: JComponent) {
|
||||
component.border = IslandsRoundedBorder { JBUI.CurrentTheme.ToolWindow.background() }
|
||||
component.border = IslandsRoundedBorder { it.background }
|
||||
}
|
||||
|
||||
fun createEditorBorder(editorsSplitters: EditorsSplitters, editorTabPainter: TabPainterAdapter) {
|
||||
|
||||
+2
-1
@@ -61,9 +61,10 @@ internal class IslandsUICustomization : InternalUICustomization() {
|
||||
override val shouldPaintEditorFadeout: Boolean = !isIslandsEnabled
|
||||
|
||||
private val toolWindowDecorator = object : ToolWindowUIDecorator() {
|
||||
override fun decorateAndReturnHolder(divider: JComponent, child: JComponent): JComponent? {
|
||||
override fun decorateAndReturnHolder(divider: JComponent, child: JComponent): JComponent {
|
||||
return XNextIslandHolder().apply {
|
||||
layout = BorderLayout()
|
||||
background = JBUI.CurrentTheme.ToolWindow.background()
|
||||
add(divider, BorderLayout.NORTH)
|
||||
add(child, BorderLayout.CENTER)
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ internal class UISettings {
|
||||
val inactiveColor: Color = defaultTextColor.addAlpha(transparencyInactiveFactor)
|
||||
val moduleProgressColor: Color = JBColor.namedColor("Label.infoForeground", 0x808080, 0x8C8C8C)
|
||||
val shortcutSeparatorColor: Color = moduleProgressColor
|
||||
val backgroundColor: Color = UIUtil.getTreeBackground()
|
||||
val backgroundColor: Color = JBUI.CurrentTheme.ToolWindow.background()
|
||||
val completedColor: Color = UIUtil.getLabelSuccessForeground()
|
||||
val activeTaskBorder: Color = JBColor.namedColor("Component.focusColor", 0x97C3F3, 0x3D6185)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user