mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Increase height of table rows slightly
This commit is contained in:
@@ -28,7 +28,7 @@ public class ColorSetRenderer extends ItemCellRenderer {
|
||||
@Override
|
||||
public final Component getTableCellRendererComponent(final JTable table, final Object value,
|
||||
final boolean isSelected, final boolean hasFocus, final int row, final int column) {
|
||||
|
||||
|
||||
if (value instanceof ColorSet) {
|
||||
this.cs = (ColorSet) value;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -76,7 +76,7 @@ public class ManaCostRenderer extends ItemCellRenderer {
|
||||
super.paint(g);
|
||||
|
||||
final int cellWidth = this.getWidth();
|
||||
|
||||
|
||||
if (v2 == null) {
|
||||
drawCost(g, v1, padding0, cellWidth);
|
||||
}
|
||||
@@ -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