Added FlatLaf inspector

This commit is contained in:
RaphiMC 2023-12-24 12:48:46 +01:00
parent 0d5835c486
commit bad937829b
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
2 changed files with 7 additions and 0 deletions

View File

@ -71,6 +71,7 @@ dependencies {
include "com.google.code.gson:gson:2.10.1"
include "com.formdev:flatlaf:3.2.5"
include "com.formdev:flatlaf-extras:3.2.5"
include "org.apache.commons:commons-lang3:3.14.0"
include "commons-io:commons-io:2.15.1"
include "net.sf.jopt-simple:jopt-simple:5.0.4"
@ -103,6 +104,10 @@ dependencies {
exclude group: "io.netty"
}
include "gs.mclo:api:3.0.1"
include "org.lz4:lz4-pure-java:1.8.0"
include("org.iq80.leveldb:leveldb:0.12") {
exclude group: "com.google.guava"
}
}
sourceSets {

View File

@ -18,6 +18,7 @@
package net.raphimc.viaproxy.ui;
import com.formdev.flatlaf.FlatDarkLaf;
import com.formdev.flatlaf.extras.FlatInspector;
import net.lenni0451.lambdaevents.EventHandler;
import net.lenni0451.lambdaevents.LambdaManager;
import net.lenni0451.lambdaevents.generator.LambdaMetaFactoryGenerator;
@ -64,6 +65,7 @@ public class ViaProxyUI extends JFrame {
this.initWindow();
this.initTabs();
FlatInspector.install("ctrl shift alt X");
ToolTipManager.sharedInstance().setInitialDelay(100);
ToolTipManager.sharedInstance().setDismissDelay(10_000);
SwingUtilities.updateComponentTreeUI(this);