Skip to content

Commit

Permalink
Added FlatLaf inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Dec 24, 2023
1 parent 0d5835c commit bad9378
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -64,6 +65,7 @@ public ViaProxyUI() {
this.initWindow();
this.initTabs();

FlatInspector.install("ctrl shift alt X");
ToolTipManager.sharedInstance().setInitialDelay(100);
ToolTipManager.sharedInstance().setDismissDelay(10_000);
SwingUtilities.updateComponentTreeUI(this);
Expand Down

0 comments on commit bad9378

Please sign in to comment.