New GUI theme: Carbon Fiber (#12733)
Co-authored-by: TandEm <tandem@users.noreply.github.com>
|
|
@ -286,12 +286,12 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
lifeLabel.setFont(font);
|
lifeLabel.setFont(font);
|
||||||
changedFontLife = false;
|
changedFontLife = false;
|
||||||
}
|
}
|
||||||
setTextForLabel("life", lifeLabel, life, playerLife, true);
|
setTextForLabel("life", lifeLabel, life, playerLife, false, PreferencesDialog.getCurrentTheme().getTextColor());
|
||||||
setTextForLabel("poison", poisonLabel, poison, counterOfName(player, "poison"), false);
|
setTextForLabel("poison", poisonLabel, poison, counterOfName(player, "poison"), false);
|
||||||
setTextForLabel("energy", energyLabel, energy, counterOfName(player, "energy"), false);
|
setTextForLabel("energy", energyLabel, energy, counterOfName(player, "energy"), false);
|
||||||
setTextForLabel("experience", experienceLabel, experience, counterOfName(player, "experience"), false);
|
setTextForLabel("experience", experienceLabel, experience, counterOfName(player, "experience"), false);
|
||||||
setTextForLabel("rad", radLabel, rad, counterOfName(player, "rad"), false);
|
setTextForLabel("rad", radLabel, rad, counterOfName(player, "rad"), false);
|
||||||
setTextForLabel("hand zone", handLabel, hand, player.getHandCount(), true);
|
setTextForLabel("hand zone", handLabel, hand, player.getHandCount(), false, PreferencesDialog.getCurrentTheme().getTextColor());
|
||||||
int libraryCards = player.getLibraryCount();
|
int libraryCards = player.getLibraryCount();
|
||||||
if (libraryCards > 99) {
|
if (libraryCards > 99) {
|
||||||
Font font = libraryLabel.getFont();
|
Font font = libraryLabel.getFont();
|
||||||
|
|
@ -304,7 +304,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
libraryLabel.setFont(font);
|
libraryLabel.setFont(font);
|
||||||
changedFontLibrary = false;
|
changedFontLibrary = false;
|
||||||
}
|
}
|
||||||
setTextForLabel("library zone", libraryLabel, library, libraryCards, true);
|
setTextForLabel("library zone", libraryLabel, library, libraryCards, false, PreferencesDialog.getCurrentTheme().getTextColor());
|
||||||
|
|
||||||
int graveCards = player.getGraveyard().size();
|
int graveCards = player.getGraveyard().size();
|
||||||
if (graveCards > 99) {
|
if (graveCards > 99) {
|
||||||
|
|
@ -321,7 +321,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
changedFontGrave = false;
|
changedFontGrave = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Color graveColor = isCardsPlayable(player.getGraveyard().values(), game, possibleTargets) ? activeValueColor : Color.BLACK;
|
Color graveColor = isCardsPlayable(player.getGraveyard().values(), game, possibleTargets) ? activeValueColor : PreferencesDialog.getCurrentTheme().getTextColor();
|
||||||
setTextForLabel("graveyard zone", graveLabel, grave, graveCards, false, graveColor);
|
setTextForLabel("graveyard zone", graveLabel, grave, graveCards, false, graveColor);
|
||||||
graveLabel.setToolTipText("Card Types: " + qtyCardTypes(player.getGraveyard()));
|
graveLabel.setToolTipText("Card Types: " + qtyCardTypes(player.getGraveyard()));
|
||||||
|
|
||||||
|
|
@ -339,7 +339,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
setTextForLabel("command zone", commandLabel, commandZone, player.getCommandObjectList().size(), false, commandColor);
|
setTextForLabel("command zone", commandLabel, commandZone, player.getCommandObjectList().size(), false, commandColor);
|
||||||
|
|
||||||
int exileCards = player.getExile().size();
|
int exileCards = player.getExile().size();
|
||||||
Color excileColor = isCardsPlayable(player.getExile().values(), game, possibleTargets) ? activeValueColor : Color.BLACK;
|
Color exileColor = isCardsPlayable(player.getExile().values(), game, possibleTargets) ? activeValueColor : PreferencesDialog.getCurrentTheme().getTextColor();
|
||||||
if (exileCards > 99) {
|
if (exileCards > 99) {
|
||||||
if (!changedFontExile) {
|
if (!changedFontExile) {
|
||||||
Font font = exileLabel.getFont();
|
Font font = exileLabel.getFont();
|
||||||
|
|
@ -353,7 +353,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
|
||||||
exileLabel.setFont(font);
|
exileLabel.setFont(font);
|
||||||
changedFontExile = false;
|
changedFontExile = false;
|
||||||
}
|
}
|
||||||
setTextForLabel("exile zone", exileLabel, exileZone, exileCards, false, excileColor);
|
setTextForLabel("exile zone", exileLabel, exileZone, exileCards, false, exileColor);
|
||||||
|
|
||||||
if (!MageFrame.isLite()) {
|
if (!MageFrame.isLite()) {
|
||||||
int id = player.getUserData().getAvatarId();
|
int id = player.getUserData().getAvatarId();
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,8 @@ public enum ThemeType {
|
||||||
// card icons
|
// card icons
|
||||||
new Color(169, 176, 190),
|
new Color(169, 176, 190),
|
||||||
Color.black,
|
Color.black,
|
||||||
new Color(51, 98, 140)
|
new Color(51, 98, 140),
|
||||||
|
Color.black
|
||||||
),
|
),
|
||||||
GREY("Grey",
|
GREY("Grey",
|
||||||
"grey-theme/",
|
"grey-theme/",
|
||||||
|
|
@ -57,6 +58,7 @@ public enum ThemeType {
|
||||||
// card icons
|
// card icons
|
||||||
new Color(158, 158, 158),
|
new Color(158, 158, 158),
|
||||||
Color.black,
|
Color.black,
|
||||||
|
Color.black,
|
||||||
Color.black
|
Color.black
|
||||||
),
|
),
|
||||||
SUNSET_VAPORWAVE("Vaporwave Sunset",
|
SUNSET_VAPORWAVE("Vaporwave Sunset",
|
||||||
|
|
@ -80,7 +82,8 @@ public enum ThemeType {
|
||||||
// card icons
|
// card icons
|
||||||
new Color(246, 136, 158),
|
new Color(246, 136, 158),
|
||||||
Color.black,
|
Color.black,
|
||||||
new Color(106, 0, 255)
|
new Color(106, 0, 255),
|
||||||
|
Color.black
|
||||||
),
|
),
|
||||||
COFFEE("Coffee",
|
COFFEE("Coffee",
|
||||||
"coffee-theme/",
|
"coffee-theme/",
|
||||||
|
|
@ -103,7 +106,8 @@ public enum ThemeType {
|
||||||
// card icons
|
// card icons
|
||||||
new Color(219, 193, 172),
|
new Color(219, 193, 172),
|
||||||
Color.black,
|
Color.black,
|
||||||
new Color(97, 27, 0)
|
new Color(97, 27, 0),
|
||||||
|
Color.black
|
||||||
),
|
),
|
||||||
ISLAND("Island",
|
ISLAND("Island",
|
||||||
"island-theme/",
|
"island-theme/",
|
||||||
|
|
@ -121,12 +125,36 @@ public enum ThemeType {
|
||||||
new Color(0, 78, 97), // nimbusBase
|
new Color(0, 78, 97), // nimbusBase
|
||||||
new Color(172, 195, 219), // mageToolbar
|
new Color(172, 195, 219), // mageToolbar
|
||||||
new Color(172, 195, 219), // playerPanel_inactiveBackgroundColor
|
new Color(172, 195, 219), // playerPanel_inactiveBackgroundColor
|
||||||
new Color(204, 236, 201), // playerPanel_inactiveBackgroundColor
|
new Color(204, 236, 201), // playerPanel_activeBackgroundColor
|
||||||
new Color(50, 68, 99, 255), // playerPanel_deadBackgroundColor
|
new Color(50, 68, 99, 255), // playerPanel_deadBackgroundColor
|
||||||
// card icons
|
// card icons
|
||||||
new Color(172, 197, 219),
|
new Color(172, 197, 219),
|
||||||
Color.black,
|
Color.black,
|
||||||
new Color(0, 78, 97)
|
new Color(0, 78, 97),
|
||||||
|
Color.black
|
||||||
|
),
|
||||||
|
CARBON_FIBER("Carbon Fiber",
|
||||||
|
"carbon_fiber-theme/",
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
new Color(43, 45, 49), // buttons, scrollar background, disabled inputs
|
||||||
|
new Color(49, 51, 56), // window background
|
||||||
|
new Color(58, 56, 64), // inputs, table rows
|
||||||
|
new Color(58, 56, 64), // tooltips
|
||||||
|
new Color(25, 25, 25), // title bars, scrollbar foreground
|
||||||
|
new Color(43, 45, 49), // mageToolbar
|
||||||
|
new Color(43, 45, 49), // playerPanel_inactiveBackgroundColor
|
||||||
|
new Color(64, 61, 56), // playerPanel_activeBackgroundColor
|
||||||
|
new Color(50, 68, 99, 255), // playerPanel_deadBackgroundColor
|
||||||
|
new Color(172, 197, 219),
|
||||||
|
Color.BLACK,
|
||||||
|
new Color(0, 78, 97),
|
||||||
|
new Color(220, 220, 220)
|
||||||
);
|
);
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
@ -151,6 +179,9 @@ public enum ThemeType {
|
||||||
private final Color cardIconsFillColor;
|
private final Color cardIconsFillColor;
|
||||||
private final Color cardIconsStrokeColor;
|
private final Color cardIconsStrokeColor;
|
||||||
private final Color cardIconsTextColor;
|
private final Color cardIconsTextColor;
|
||||||
|
private final Color textColor;
|
||||||
|
|
||||||
|
//private final Color nimbusSelection;
|
||||||
|
|
||||||
ThemeType(String name,
|
ThemeType(String name,
|
||||||
String path,
|
String path,
|
||||||
|
|
@ -172,7 +203,8 @@ public enum ThemeType {
|
||||||
Color playerPanel_deadBackgroundColor,
|
Color playerPanel_deadBackgroundColor,
|
||||||
Color cardIconsFillColor,
|
Color cardIconsFillColor,
|
||||||
Color cardIconsStrokeColor,
|
Color cardIconsStrokeColor,
|
||||||
Color cardIconsTextColor
|
Color cardIconsTextColor,
|
||||||
|
Color textColor
|
||||||
) {
|
) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.path = path;
|
this.path = path;
|
||||||
|
|
@ -195,6 +227,7 @@ public enum ThemeType {
|
||||||
this.cardIconsFillColor = cardIconsFillColor;
|
this.cardIconsFillColor = cardIconsFillColor;
|
||||||
this.cardIconsStrokeColor = cardIconsStrokeColor;
|
this.cardIconsStrokeColor = cardIconsStrokeColor;
|
||||||
this.cardIconsTextColor = cardIconsTextColor;
|
this.cardIconsTextColor = cardIconsTextColor;
|
||||||
|
this.textColor = textColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -243,6 +276,10 @@ public enum ThemeType {
|
||||||
return mageToolbar;
|
return mageToolbar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Color getTextColor() {
|
||||||
|
return textColor;
|
||||||
|
}
|
||||||
|
|
||||||
public Color getPlayerPanel_inactiveBackgroundColor() {
|
public Color getPlayerPanel_inactiveBackgroundColor() {
|
||||||
return playerPanel_inactiveBackgroundColor;
|
return playerPanel_inactiveBackgroundColor;
|
||||||
}
|
}
|
||||||
|
|
@ -353,4 +390,4 @@ public enum ThemeType {
|
||||||
// reload card icons and other rendering things from cache - it can depend on current theme
|
// reload card icons and other rendering things from cache - it can depend on current theme
|
||||||
GUISizeHelper.refreshGUIAndCards(true);
|
GUISizeHelper.refreshGUIAndCards(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -494,6 +494,8 @@ public final class GuiDisplayUtil {
|
||||||
UIManager.put("info", PreferencesDialog.getCurrentTheme().getInfo()); // tooltips
|
UIManager.put("info", PreferencesDialog.getCurrentTheme().getInfo()); // tooltips
|
||||||
UIManager.put("nimbusBase", PreferencesDialog.getCurrentTheme().getNimbusBase()); // title bars, scrollbar foreground
|
UIManager.put("nimbusBase", PreferencesDialog.getCurrentTheme().getNimbusBase()); // title bars, scrollbar foreground
|
||||||
|
|
||||||
|
UIManager.put("text", PreferencesDialog.getCurrentTheme().getTextColor()); // Default text color
|
||||||
|
|
||||||
//UIManager.put("nimbusDisabledText", Color.green); // TODO: improve disabled color
|
//UIManager.put("nimbusDisabledText", Color.green); // TODO: improve disabled color
|
||||||
//UIManager.put("Table.rowHeight", GUISizeHelper.tableRowHeight);
|
//UIManager.put("Table.rowHeight", GUISizeHelper.tableRowHeight);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
package mage.client.util.stats;
|
package mage.client.util.stats;
|
||||||
|
import mage.client.dialog.PreferencesDialog;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -75,7 +76,7 @@ public class UpdateMemUsageTask extends SwingWorker<Void, MemoryStats> {
|
||||||
+ "Application memory limit almost reached. Errors and freezes are very possible.";
|
+ "Application memory limit almost reached. Errors and freezes are very possible.";
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
jLabelToDisplayInfo.setForeground(Color.black);
|
jLabelToDisplayInfo.setForeground(PreferencesDialog.getCurrentTheme().getTextColor());
|
||||||
}
|
}
|
||||||
|
|
||||||
this.jLabelToDisplayInfo.setToolTipText("<html>Memory usage statistics" + warning + optimizeHint);
|
this.jLabelToDisplayInfo.setToolTipText("<html>Memory usage statistics" + warning + optimizeHint);
|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 21 KiB |