mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
IJPL-189456 Gradient in island themes is not smooth on linux, windows
GitOrigin-RevId: 22d0bbabe85d8caac29093cd17340eac7348a708
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dd129accd7
commit
da910a89a5
@@ -75,11 +75,10 @@ internal class IslandsGradientPainter(private val frame: IdeFrame, private val m
|
||||
g.paint = rightGradientTexture
|
||||
g.fillRect(leftWidth, 0, rightWidth, height)
|
||||
|
||||
if (ClientSystemInfo.isMac()) {
|
||||
alignTxToInt(g, null, false, true, PaintUtil.RoundingMode.FLOOR)
|
||||
alignTxToInt(g, null, false, true, PaintUtil.RoundingMode.FLOOR)
|
||||
|
||||
g.paint = GradientPaint(0f, 0f, Gray.TRANSPARENT, 0f, height.toFloat(), mainColor)
|
||||
g.fillRect(0, 0, totalWidth, height)
|
||||
}
|
||||
val startColor = if (ClientSystemInfo.isMac()) Gray.TRANSPARENT else ColorUtil.toAlpha(mainColor, 0)
|
||||
g.paint = GradientPaint(0f, 0f, startColor, 0f, height.toFloat(), mainColor)
|
||||
g.fillRect(0, 0, totalWidth, height)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user