mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Increase height of table rows slightly
This commit is contained in:
@@ -51,7 +51,7 @@ public class ColorSetRenderer extends ItemCellRenderer {
|
||||
final int cellWidth = this.getWidth();
|
||||
|
||||
int x = padding0;
|
||||
int y = padding0;
|
||||
int y = padding0 + 1;
|
||||
|
||||
final int cntGlyphs = cs.countColors();
|
||||
final int offsetIfNoSpace = cntGlyphs > 1 ? (cellWidth - padding0 - elemtWidth) / (cntGlyphs - 1) : elemtWidth + elemtGap;
|
||||
|
||||
@@ -128,7 +128,7 @@ public final class ItemListView<T extends InventoryItem> extends ItemView<T> {
|
||||
this.table.setFont(FSkin.getFont(12));
|
||||
this.table.setBorder((Border)null);
|
||||
this.table.getTableHeader().setBorder(null);
|
||||
this.table.setRowHeight(18);
|
||||
this.table.setRowHeight(20);
|
||||
this.table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
|
||||
|
||||
// prevent tables from intercepting tab focus traversals
|
||||
|
||||
@@ -99,7 +99,7 @@ public class ManaCostRenderer extends ItemCellRenderer {
|
||||
*/
|
||||
private void drawCost(final Graphics g, ManaCost value, final int padding, final int cellWidth) {
|
||||
int x = padding;
|
||||
int y = padding0;
|
||||
int y = padding0 + 1;
|
||||
final int genericManaCost = value.getGenericCost();
|
||||
final int xManaCosts = value.countX();
|
||||
final boolean hasGeneric = (genericManaCost > 0) || this.v1.isPureGeneric();
|
||||
|
||||
Reference in New Issue
Block a user