mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-10-29 11:47:01 +00:00
add MacLight LaF
This commit is contained in:
parent
418796646d
commit
7ab78a05a7
@ -238,7 +238,7 @@
|
||||
<dependency>
|
||||
<groupId>com.formdev</groupId>
|
||||
<artifactId>flatlaf</artifactId>
|
||||
<version>2.6</version>
|
||||
<version>3.1.1</version>
|
||||
<type>jar</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@ -10,7 +10,6 @@ import org.jivesoftware.sparkimpl.settings.local.SettingsManager;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.util.*;
|
||||
import org.jivesoftware.spark.ui.themes.lafs.SparkLightLaf;
|
||||
|
||||
/**
|
||||
* Manages the Look and Feel instances that can be used by Spark.
|
||||
@ -25,7 +24,8 @@ public class LookAndFeelManager {
|
||||
public static final Class<? extends LookAndFeel> lafs[] = new Class[]{
|
||||
//flatlaf
|
||||
org.jivesoftware.spark.ui.themes.lafs.SparkLightLaf.class,
|
||||
org.jivesoftware.spark.ui.themes.lafs.SparkIntelliJLaf.class
|
||||
org.jivesoftware.spark.ui.themes.lafs.SparkIntelliJLaf.class,
|
||||
org.jivesoftware.spark.ui.themes.lafs.SparkMacLightLaf.class
|
||||
};
|
||||
|
||||
static {
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
package org.jivesoftware.spark.ui.themes.lafs;
|
||||
|
||||
import com.formdev.flatlaf.themes.FlatMacLightLaf;
|
||||
|
||||
public class SparkMacLightLaf extends FlatMacLightLaf {
|
||||
public static boolean setup() {
|
||||
return setup(new SparkMacLightLaf());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "SparkMacLightLaf";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "SparkMacLightLaf Look and Feel";
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user