Skip to content

Commit 74cc5ea

Browse files
committed
Auto-tap: Decrease the glow size
1 parent 4328ac5 commit 74cc5ea

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

forge-gui-desktop/src/main/java/forge/view/arcane/CardPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ protected final void paintComponent(final Graphics g) {
324324

325325
// Yellow glow for cards that Auto would tap to pay
326326
if (matchUI.isAutoTapPreview(getCard())) {
327-
for (int layer = 4; layer >= 1; layer--) {
328-
g2d.setColor(new Color(1f, 1f, 0f, 0.12f * layer));
329-
final int n = Math.max(1, Math.round(layer * 2 * cardWidth * CardPanel.SELECTED_BORDER_SIZE));
327+
for (int layer = 2; layer >= 1; layer--) {
328+
g2d.setColor(new Color(1f, 1f, 0f, 0.08f * layer));
329+
final int n = Math.max(1, Math.round(layer * cardWidth * CardPanel.SELECTED_BORDER_SIZE));
330330
g2d.fillRoundRect(cardXOffset - n, (cardYOffset - n) + offset, cardWidth + (n * 2), cardHeight + (n * 2), cornerSize + n, cornerSize + n);
331331
}
332332
}

forge-gui-mobile/src/forge/card/CardRenderer.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,9 @@ private static Color rgbFromHex(String s) {
8787
}
8888

8989
private static void drawAutoTapGlow(Graphics g, float cx, float cy, float cw, float ch) {
90-
for (int layer = 4; layer >= 1; layer--) {
91-
float expand = layer * Utils.scale(2f);
92-
float alpha = 0.12f * layer;
93-
g.drawRect(BORDER_THICKNESS + layer, FSkinColor.alphaColor(Color.YELLOW, alpha),
94-
cx - expand, cy - expand, cw + expand * 2, ch + expand * 2);
95-
}
96-
g.drawRect(BORDER_THICKNESS + 1, Color.YELLOW, cx, cy, cw, ch);
90+
g.drawRect(BORDER_THICKNESS, FSkinColor.alphaColor(Color.YELLOW, 0.16f),
91+
cx - Utils.scale(1f), cy - Utils.scale(1f), cw + Utils.scale(2f), ch + Utils.scale(2f));
92+
g.drawRect(BORDER_THICKNESS, FSkinColor.alphaColor(Color.YELLOW, 0.7f), cx, cy, cw, ch);
9793
}
9894

9995
// class that simplifies the callback logic of CachedCardImage

0 commit comments

Comments
 (0)