feat: add in Flatlaf keypress for beinging up UIManager defaults tool

This commit is contained in:
Ryan Dowling 2020-10-12 10:05:47 +11:00
parent 80f37fc2ad
commit 613f13155e
No known key found for this signature in database
GPG key ID: 5539FCDB88950EFD
3 changed files with 12 additions and 2 deletions

3
.gitignore vendored
View file

@ -3,6 +3,7 @@
build/
# Runtime
bin/
dist/
testLauncher/
run/
@ -21,4 +22,4 @@ cache/
# Other
java_pid*.hprof
*.log
*.log

View file

@ -49,7 +49,7 @@ If you want to run the launcher while developing with it, you can use your IDE (
Alternatively you can run:
```sh
./gradlew run --args="--debug --debug-level 3 --working-dir=test"
./gradlew run --args="--debug --debug-level 3 --working-dir=testLauncher"
```
## Using VSCode
@ -127,6 +127,13 @@ in order for the theme to work exactly right.
For an example, see the `DraculaContrast` theme which uses this method.
### Tools To Help Theme Development
To help with theme development, with the launcher running (not in the release version, only in development), you can
press `Ctrl + Shift + Alt + X` to bring up a tool to highlight UI components to see their properties. You can also press
`Ctrl + Shift + Alt + Y` to bring up a list of all the default properties in the UIManager. These values can be modified
in your `.properties` file.
## Plugging In Your Data
To get started with the code and plug in your own data, you need to edit the

View file

@ -73,6 +73,7 @@ import com.atlauncher.utils.Java;
import com.atlauncher.utils.OS;
import com.atlauncher.utils.Utils;
import com.formdev.flatlaf.extras.FlatInspector;
import com.formdev.flatlaf.extras.FlatUIDefaultsInspector;
import io.github.asyncronous.toast.Toaster;
import joptsimple.OptionParser;
@ -574,6 +575,7 @@ public class App {
// non release versions
if (!Constants.VERSION.isReleaseStream()) {
FlatInspector.install("ctrl shift alt X");
FlatUIDefaultsInspector.install("ctrl shift alt Y");
}
// register the fonts so they can show within HTML