mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
Compare commits
2 Commits
c995b4cbdf
...
465254c0da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
465254c0da | ||
|
|
aaca7cace1 |
@@ -14,6 +14,8 @@ FlatLaf Change Log
|
|||||||
- UI defaults inspector: Fixed NPE if color of `FlatLineBorder` is null. Also
|
- UI defaults inspector: Fixed NPE if color of `FlatLineBorder` is null. Also
|
||||||
use `FlatLineBorder` line color as cell background color in "Value" column.
|
use `FlatLineBorder` line color as cell background color in "Value" column.
|
||||||
(PR #1080)
|
(PR #1080)
|
||||||
|
- `FlatDesktop`: Avoid unnecessary logging if desktop is not supported (e.g.
|
||||||
|
on NixOS with Plasma/KDE desktop).
|
||||||
|
|
||||||
|
|
||||||
## 3.7
|
## 3.7
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -76,10 +76,16 @@ Otherwise, download `flatlaf-<version>.jar` here:
|
|||||||
|
|
||||||
[](https://central.sonatype.com/artifact/com.formdev/flatlaf)
|
[](https://central.sonatype.com/artifact/com.formdev/flatlaf)
|
||||||
|
|
||||||
See also
|
- See
|
||||||
[Native Libraries distribution](https://www.formdev.com/flatlaf/native-libraries/)
|
[Native Libraries distribution](https://www.formdev.com/flatlaf/native-libraries/)
|
||||||
for instructions on how to redistribute FlatLaf native libraries with your
|
for instructions on how to redistribute FlatLaf native libraries with your
|
||||||
application.
|
application.
|
||||||
|
- If repackaging FlatLaf (and other) JARs into a single fat/uber JAR:
|
||||||
|
- add `Multi-Release: true` to `META-INF/MANIFEST.MF`
|
||||||
|
- keep `META-INF/versions/` and `META-INF/services/` directories
|
||||||
|
- merge content of equally named files in `META-INF/services/`
|
||||||
|
- If using obfuscation/minimizing/shrinking tools (e.g. **ProGuard** or
|
||||||
|
**Shadow**), exclude package `com.formdev.flatlaf` and all sub-packages.
|
||||||
|
|
||||||
|
|
||||||
### Snapshots
|
### Snapshots
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ public class FlatDesktop
|
|||||||
public static boolean isSupported( Action action ) {
|
public static boolean isSupported( Action action ) {
|
||||||
if( SystemInfo.isJava_9_orLater ) {
|
if( SystemInfo.isJava_9_orLater ) {
|
||||||
try {
|
try {
|
||||||
return Desktop.getDesktop().isSupported( Enum.valueOf( Desktop.Action.class, action.name() ) );
|
return Desktop.isDesktopSupported() &&
|
||||||
|
Desktop.getDesktop().isSupported( Enum.valueOf( Desktop.Action.class, action.name() ) );
|
||||||
} catch( Exception ex ) {
|
} catch( Exception ex ) {
|
||||||
LoggingFacade.INSTANCE.logSevere( null, ex );
|
LoggingFacade.INSTANCE.logSevere( null, ex );
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user