IJPL-232402 Gradient appears with artifacts on IDE startup when main menu in a separate row (exclude linux)

(cherry picked from commit de75bc5cd74f394c4af89f28e0761fee1f3d26ef)

IJ-CR-193217

GitOrigin-RevId: b0b050997291825917c1df54a9deb1ecdadd0658
This commit is contained in:
Alexander Lobas
2026-02-25 12:26:17 +00:00
committed by intellij-monorepo-bot
parent 9481cefbd9
commit 074f59fa71
@@ -125,7 +125,7 @@ private fun doGradientPaint(frame: IdeFrame, mainColor: Color, project: Project,
val totalWidth = alignIntToInt(leftWidth + rightWidth, ctx, PaintUtil.RoundingMode.CEIL, null)
val fullBounds = Rectangle(totalWidth, height)
val bounds = g.clipBounds?.intersection(fullBounds) ?: fullBounds
val bounds = if (SystemInfo.isLinux) fullBounds else g.clipBounds?.intersection(fullBounds) ?: fullBounds
if (bounds.isEmpty) {
return
}