IJPL-223929 Gradient for tool window stripes is missing when dragging tool window icon

GitOrigin-RevId: c3f4ed6b7358348ba98327f30458d3d0bfe11e6b
This commit is contained in:
Alexander Lobas
2025-12-15 19:49:09 +00:00
committed by intellij-monorepo-bot
parent 3625e07e4d
commit 440d28788f
5 changed files with 6 additions and 11 deletions
@@ -550,8 +550,10 @@ internal abstract class AbstractDroppableStripe(val paneId: String, layoutManage
override fun paintComponent(g: Graphics) {
super.paintComponent(g)
if (!isFinishingDrop && isDroppingButton()) {
g.color = if (isNewStripes) JBUI.CurrentTheme.ToolWindow.DragAndDrop.STRIPE_BACKGROUND else background.brighter()
g.fillRect(0, 0, width, height)
if (!isNewStripes) {
g.color = background.brighter()
g.fillRect(0, 0, width, height)
}
val rectangle = Rectangle(drawRectangle)
if (!rectangle.isEmpty) {
var round: Int? = null
@@ -136,8 +136,7 @@
"background": "BackgroundLight",
"borderColor": "BorderTransparent",
"separatorColor": "Gray5"
},
"Button.DragAndDrop.stripeBackground": "BackgroundLight"
}
},
"StripeToolbar.Button": {
@@ -733,7 +732,6 @@
"ToolWindow.Header.inactiveBackground": "#212326",
"ToolWindow.background": "#212326",
"ToolWindow.Button.DragAndDrop.stripeBackground": "AltBackgroundLight",
"Borders.color": "#2E3033",
"Borders.ContrastBorderColor": "#2E3033",
@@ -91,8 +91,7 @@
"Stripe": {
"background": "BackgroundDark",
"borderColor": "BorderTransparent"
},
"Button.DragAndDrop.stripeBackground": "BackgroundDark"
}
},
"StripeToolbar.Button": {
@@ -261,7 +260,6 @@
"ToolWindow.Header.inactiveBackground": "#F7F6F8",
"ToolWindow.background": "#F7F6F8",
"ToolWindow.Button.DragAndDrop.stripeBackground": "AltBackgroundDark",
"Borders.color": "#E8E9ED",
"Borders.ContrastBorderColor": "#E8E9ED",
-1
View File
@@ -4704,7 +4704,6 @@ com.intellij.util.ui.JBUI$CurrentTheme$ToolWindow$DragAndDrop
- sf:BUTTON_DROP_BACKGROUND:java.awt.Color
- sf:BUTTON_DROP_BORDER:java.awt.Color
- sf:BUTTON_FLOATING_BACKGROUND:java.awt.Color
- sf:STRIPE_BACKGROUND:java.awt.Color
f:com.intellij.util.ui.JBUI$CurrentTheme$Toolbar
- sf:SEPARATOR_COLOR:java.awt.Color
- <init>():V
@@ -1123,8 +1123,6 @@ public final class JBUI {
}
public interface DragAndDrop {
Color STRIPE_BACKGROUND = JBColor.namedColor("ToolWindow.Button.DragAndDrop.stripeBackground",
CurrentTheme.DragAndDrop.Area.BACKGROUND);
Color BUTTON_DROP_BACKGROUND = JBColor.namedColor("ToolWindow.Button.DragAndDrop.buttonDropBackground",
CurrentTheme.DragAndDrop.Area.BACKGROUND);
Color BUTTON_FLOATING_BACKGROUND = JBColor.namedColor("ToolWindow.Button.DragAndDrop.buttonFloatingBackground",