mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
committed by
intellij-monorepo-bot
parent
9481cefbd9
commit
074f59fa71
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user