mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-162476 Add alpha to inline hint background
This commit is contained in:
+2
@@ -45,6 +45,7 @@ public class ParameterHintsPresentationManager implements Disposable {
|
||||
|
||||
private static final int ANIMATION_STEP_MS = 25;
|
||||
private static final int ANIMATION_CHARS_PER_STEP = 3;
|
||||
private static final float BACKGROUND_ALPHA = 0.55f;
|
||||
|
||||
private final Alarm myAlarm = new Alarm(this);
|
||||
|
||||
@@ -198,6 +199,7 @@ public class ParameterHintsPresentationManager implements Disposable {
|
||||
Color backgroundColor = attributes.getBackgroundColor();
|
||||
if (backgroundColor != null) {
|
||||
GraphicsConfig config = GraphicsUtil.setupAAPainting(g);
|
||||
GraphicsUtil.paintWithAlpha(g, BACKGROUND_ALPHA);
|
||||
g.setColor(backgroundColor);
|
||||
int gap = r.height < (fontMetrics.lineHeight + 2) ? 1 : 2;
|
||||
g.fillRoundRect(r.x + 2, r.y + gap, r.width - 4, r.height - gap * 2, 8, 8);
|
||||
|
||||
Reference in New Issue
Block a user