mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-10-29 19:57:28 +00:00
MacOS Should use SparkMacLight LaF use by default
This commit is contained in:
parent
7ab78a05a7
commit
a3984d8297
@ -73,6 +73,7 @@ public class Default {
|
||||
public static final String FRAME_IMAGE = "FRAME_IMAGE";
|
||||
public static final String LOOK_AND_FEEL_DISABLED = "LOOK_AND_FEEL_DISABLED";
|
||||
public static final String DEFAULT_LOOK_AND_FEEL = "DEFAULT_LOOK_AND_FEEL";
|
||||
public static final String DEFAULT_LOOK_AND_FEEL_MAC = "DEFAULT_LOOK_AND_FEEL_MAC";
|
||||
public static final String INSTALL_PLUGINS_DISABLED = "INSTALL_PLUGINS_DISABLED";
|
||||
public static final String UNINSTALL_PLUGINS_DISABLED = "UNINSTALL_PLUGINS_DISABLED";
|
||||
public static final String ADVANCED_DISABLED = "ADVANCED_DISABLED";
|
||||
|
||||
@ -107,7 +107,7 @@ public class LookAndFeelManager {
|
||||
private static String getLookandFeel(LocalPreferences preferences) {
|
||||
String result;
|
||||
|
||||
String whereToLook = Default.DEFAULT_LOOK_AND_FEEL;
|
||||
String whereToLook = Spark.isMac() ? Default.DEFAULT_LOOK_AND_FEEL_MAC : Default.DEFAULT_LOOK_AND_FEEL;
|
||||
|
||||
if (!Default.getBoolean(Default.LOOK_AND_FEEL_DISABLED)) {
|
||||
result = preferences.getLookAndFeel();
|
||||
|
||||
@ -966,7 +966,8 @@ public class LocalPreferences {
|
||||
public String getLookAndFeel() {
|
||||
String defaultstring;
|
||||
try {
|
||||
defaultstring = Default.getString(Default.DEFAULT_LOOK_AND_FEEL);
|
||||
defaultstring = Spark.isMac() ? Default.getString(Default.DEFAULT_LOOK_AND_FEEL_MAC)
|
||||
: Default.getString(Default.DEFAULT_LOOK_AND_FEEL);
|
||||
} catch (Exception e) {
|
||||
defaultstring = UIManager.getSystemLookAndFeelClassName();
|
||||
}
|
||||
|
||||
@ -318,6 +318,7 @@ CHANGE_COLORS_DISABLED =
|
||||
# Changes the Default Look&Feel, if empty it will load the SystemSkin
|
||||
# Default Spark skin is org.jivesoftware.spark.ui.themes.lafs.SparkLightLaf
|
||||
DEFAULT_LOOK_AND_FEEL = org.jivesoftware.spark.ui.themes.lafs.SparkLightLaf
|
||||
DEFAULT_LOOK_AND_FEEL_MAC = org.jivesoftware.spark.ui.themes.lafs.SparkMacLightLaf
|
||||
|
||||
# tabs are placed on bottom by default. if set to true will be placed on top
|
||||
TABS_PLACEMENT_TOP =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user