some tuning for deckimport appearance

This commit is contained in:
Maxmtg
2011-09-21 04:45:47 +00:00
parent b1eb571296
commit d742205910
2 changed files with 4 additions and 5 deletions

View File

@@ -113,9 +113,8 @@ public class DeckRecognizer {
} }
private static boolean isSectionName(String line) { private static boolean isSectionName(String line) {
if (line.equalsIgnoreCase("sideboard")) { return true; } if (line.toLowerCase().contains("side")) { return true; }
if (line.equalsIgnoreCase("MAIN BOARD")) { return true; } if (line.toLowerCase().contains("main")) { return true; }
if (line.equalsIgnoreCase("MAIN")) { return true; }
return false; return false;
} }

View File

@@ -44,7 +44,7 @@ public class DeckImport extends JDialog {
".comment {color: #666666;} " + ".comment {color: #666666;} " +
".knowncard {color: #009900;} " + ".knowncard {color: #009900;} " +
".unknowncard {color: #990000;} " + ".unknowncard {color: #990000;} " +
".section {font-weight: bold; margin: 6px 0; text-decoration: underline; } " + ".section {padding: 3px 10px; margin: 3px 0; font-weight: 700; background-color: #DDDDDD; } " +
"</style>"; "</style>";
private static final String htmlWelcomeText = "<html>"+stylesheet+"<h3>You'll see recognized cards here</h3>" + private static final String htmlWelcomeText = "<html>"+stylesheet+"<h3>You'll see recognized cards here</h3>" +
"<div class='section'>Legend</div>" + "<div class='section'>Legend</div>" +
@@ -72,7 +72,7 @@ public class DeckImport extends JDialog {
public DeckImport(DeckEditorBase g) { public DeckImport(DeckEditorBase g) {
host = g; host = g;
int wWidth = 800; int wWidth = 600;
int wHeight = 600; int wHeight = 600;
setPreferredSize(new java.awt.Dimension(wWidth, wHeight)); setPreferredSize(new java.awt.Dimension(wWidth, wHeight));