mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Skin tooltips
This commit is contained in:
@@ -1994,6 +1994,7 @@ public enum FSkin {
|
||||
setComboBoxLookAndFeel();
|
||||
setTabbedPaneLookAndFeel();
|
||||
setButtonLookAndFeel();
|
||||
setToolTipLookAndFeel();
|
||||
}
|
||||
}
|
||||
onInit = false;
|
||||
@@ -2086,10 +2087,8 @@ public enum FSkin {
|
||||
UIManager.put("ComboBox.disabledBackground", BACK_COLOR);
|
||||
UIManager.put("ComboBox.disabledForeground", BACK_COLOR.darker());
|
||||
UIManager.put("ComboBox.font", getDefaultFont("ComboBox.font"));
|
||||
UIManager.put("Button.select", HIGHLIGHT_COLOR);
|
||||
boolean isBright = isColorBright(FORE_COLOR);
|
||||
UIManager.put("ComboBox.border", BorderFactory.createLineBorder(isBright ? FORE_COLOR.darker() : FORE_COLOR.brighter(), 1));
|
||||
UIManager.put("Button.select", HIGHLIGHT_COLOR);
|
||||
}
|
||||
|
||||
private void setButtonLookAndFeel() {
|
||||
@@ -2100,6 +2099,12 @@ public enum FSkin {
|
||||
UIManager.put("Button.rollover", false);
|
||||
}
|
||||
|
||||
private void setToolTipLookAndFeel() {
|
||||
UIManager.put("ToolTip.background", BACK_COLOR);
|
||||
UIManager.put("ToolTip.foreground", FORE_COLOR);
|
||||
UIManager.put("ToolTip.border", LINE_BORDER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether theme styles should be applied to GUI.
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user