mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
some tuning for deckimport appearance
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user