perf(ui): 优化 FlatDarculaLaf 的加载方式
- 将 UIManager.setLookAndFeel 替换为 FlatDarculaLaf.setup() - 移除 flatlaf 依赖中的 no-natives 分类器
This commit is contained in:
parent
0efb720dfc
commit
22c3135352
1
pom.xml
1
pom.xml
|
@ -52,7 +52,6 @@
|
|||
<groupId>com.formdev</groupId>
|
||||
<artifactId>flatlaf</artifactId>
|
||||
<version>3.4.1</version>
|
||||
<classifier>no-natives</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
|
|
|
@ -22,7 +22,8 @@ public class Main {
|
|||
|
||||
public static void main(String[] args) throws Exception {
|
||||
AppLocker locker = AppLocker.create("aoheSaneServiceLock").setPath(Paths.get(JAVA_IO_TMPDIR)).build();
|
||||
UIManager.setLookAndFeel(new FlatDarculaLaf());
|
||||
FlatDarculaLaf.setup();
|
||||
//UIManager.setLookAndFeel(new FlatDarculaLaf());
|
||||
try {
|
||||
locker.lock();
|
||||
}catch (Exception e){
|
||||
|
|
Loading…
Reference in New Issue