Karl Tauber
eee177e64b
Window decorations: enabling/disabling menu bar embedding via system and client properties now works the same way as for window decorations
...
(previously it was only possible to disable menu bar embedding)
2021-04-03 16:19:11 +02:00
Karl Tauber
63639f8e96
Native window decorations: cleaned-up/simplified JetBrains Runtime custom window decorations "enabled" checking:
...
- `FlatSystemProperties.USE_WINDOW_DECORATIONS` is now also used for JBR custom window decorations
- `FlatSystemProperties.USE_JETBRAINS_CUSTOM_DECORATIONS` is now only used to disable JBR custom window decorations; then FlatLaf native window decorations are used
- JBR custom window decorations are now disabled when running in JetBrains Projector, Webswing or WinPE
2021-04-03 13:32:46 +02:00
Karl Tauber
de1b0b1bb6
MenuBar: do not use TitlePane.unifiedBackground if window decorations are disabled for the window
2021-04-03 11:51:45 +02:00
Karl Tauber
6addb5c4b4
Native window decorations:
...
- API to check whether current platform supports window decorations `FlatLaf.supportsNativeWindowDecorations()`
- API to toggle window decorations of all windows `FlatLaf.setUseNativeWindowDecorations(boolean)`
- `FlatClientProperties.USE_WINDOW_DECORATIONS` can now used to toggle window decorations for single window
- cleaned-up/fixed/simplified window decorations "enabled" checking:
1. if `FlatSystemProperties.USE_WINDOW_DECORATIONS` is set, its value is used
2. if `FlatClientProperties.USE_WINDOW_DECORATIONS` is set, its value is used
3. use value of UI default `TitlePane.useWindowDecorations`
2021-04-03 11:13:57 +02:00
Karl Tauber
d31f167b9e
TabbedPane: fixed NPE when creating/modifying in another thread (issue #299 )
2021-04-01 12:35:50 +02:00
Karl Tauber
f12ee6c167
added dummy class to empty opend module packages
2021-04-01 09:40:22 +02:00
Karl Tauber
983b341f33
Native window decorations: fixed loading of native library when using JPMS for application (issue #289 )
2021-04-01 01:07:35 +02:00
Karl Tauber
f3e6642f05
Button and ToggleButton: simplified/unified code of FlatButtonUI.getBackground() (issue #292 )
2021-03-31 23:14:45 +02:00
Karl Tauber
0a63990d21
Button and ToggleButton: do not paint background of disabled (and unselected) toolBar buttons (issue #292 ; regression since fixing #112 )
2021-03-31 22:28:43 +02:00
Karl Tauber
6909bb4b03
Native window decorations: removed superfluous pixel-line at top of screen when window is maximized (issue #296 )
2021-03-31 20:56:17 +02:00
Karl Tauber
d13ddeb944
use larger font when running on WinPE (issue #279 )
2021-03-30 11:00:27 +02:00
Karl Tauber
1b5da0e1d1
Window decorations: support enabling/disabling unified title bar backgrounds at runtime without FlatLaf.updateUI()
2021-03-30 01:34:34 +02:00
Karl Tauber
7a2d0e7fcb
fixed crash when running in Webswing (issue #290 )
2021-03-30 01:06:30 +02:00
Karl Tauber
f801d61929
support running on WinPE (issue #279 )
2021-03-26 21:51:11 +01:00
Karl Tauber
bf500e46e7
Window decorations: fixed wrong/missing window icon when application replaces InternalFrame.icon (issue #284 )
2021-03-25 16:14:41 +01:00
Karl Tauber
4a2f79f390
Native window decorations: updated DLLs (issues #282 and #283 )
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/686023039
2021-03-25 11:10:13 +01:00
Karl Tauber
c24ce7c5bc
Native window decorations: fixed broken maximizing window when restoring frame state at startup (issue #283 )
2021-03-25 10:32:24 +01:00
Karl Tauber
8a6a0c7971
Native window decorations: fixed missing animations when minimizing, maximizing or restoring a window using window title bar buttons (issue #282 )
2021-03-24 23:59:59 +01:00
Karl Tauber
de6e5bd800
fixed missing focus indicators in heavy-weight popups (issue #273 )
2021-03-24 11:43:06 +01:00
Karl Tauber
e18a04f9e6
Merge pull request #278 from ingokegel/native_provider_setter
...
Add a setter for the native provider
2021-03-24 11:34:22 +01:00
Karl Tauber
14fc652f4b
Window decorations: fixed right aligned progress bar in embedded menu bar was overlapping window title (issue #272 )
2021-03-23 19:23:18 +01:00
Ingo Kegel
9a876e747a
Added setter for native provider
...
This makes it possible to support situations where the extraction of a DLL at runtime is not possible
2021-03-23 16:47:08 +01:00
Karl Tauber
f8ee8b27fb
InternalFrame: fixed translucent internal frame menu bar background if TitlePane.unifiedBackground is true (issue #274 )
2021-03-23 15:08:01 +01:00
Karl Tauber
ce1a1487aa
support menu bars in JDialog
2021-03-23 14:58:53 +01:00
Karl Tauber
fe1e364a1d
Native window decorations: support disabling native window decorations per window via client property (issue #277 )
2021-03-23 13:18:07 +01:00
Karl Tauber
eabb052107
Native window decorations: fixed double window title bar when first disposing a window and then showing it again (issue #277 )
2021-03-23 10:07:43 +01:00
Karl Tauber
734f3621f1
Window decorations: Fixed NPE in FlatTitlePane.findHorizontalGlue() (issue #275 )
2021-03-22 18:47:53 +01:00
Karl Tauber
2945a36cef
added since 1.1
2021-03-21 13:53:57 +01:00
Karl Tauber
d39b08c035
FlatArrowButton: refactored arrow painting to FlatUIUtils.paintArrow() so that it can be easily used other components (e.g. JideSplitButton)
2021-03-19 01:21:19 +01:00
Karl Tauber
69ac683c8c
Support running in JetBrains Projector ( https://jetbrains.com/projector/ )
2021-03-17 00:43:08 +01:00
Karl Tauber
eafd0b3d06
use lambdas for listeners (where possible) instead of extending Basic*UI.*Handler classes
...
some of those `Basic*UI.*Handler` classes may be deprecated in a future Java version (see https://github.com/openjdk/jdk/pull/1958 )
this should also avoid loading of those `Basic*UI.*Handler` classes at runtime
2021-03-17 00:34:35 +01:00
Karl Tauber
310a4989dc
JIDE: made used fonts "active" and restored fonts modified in LookAndFeelFactory.installJideExtension()
2021-03-16 23:23:40 +01:00
Karl Tauber
ede02aaaa5
TabbedPane: use float arc for tab area button background
2021-03-16 22:20:46 +01:00
Karl Tauber
04aa61c2bb
Merge pull request #268 from title-pane-improvements
...
Title pane improvements (Windows 10 only)
2021-03-14 17:39:50 +01:00
Karl Tauber
035a13df54
Window decorations: support unified backgrounds for window title bar, menu bar and main content (issue #254 )
2021-03-14 15:13:26 +01:00
Karl Tauber
e8a6f0ca3d
Native window decorations: added flatlaf-windows-x86.dll and updated flatlaf-windows-x86_64.dll
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/650060630
2021-03-14 00:20:22 +01:00
Karl Tauber
8eb44a68cb
Native window decorations: support 32-bit JREs
2021-03-13 23:41:38 +01:00
Karl Tauber
30c7b442a8
Window decorations:
...
- support customizing of window title alignment: left aligned or centered (default is left without embedded menubar and centered with embedded menubar)
- improved centering of window title with embedded menubar (issue #252 )
2021-03-13 17:08:47 +01:00
Karl Tauber
b7bcbccd45
Window decorations: support right aligned extra components in JFrame title pane with embedded menu bar
2021-03-13 11:10:50 +01:00
Karl Tauber
d2ccb97eba
Native window decorations: use LoggingFacade
2021-03-12 23:18:13 +01:00
Karl Tauber
39d56f2603
Merge pull request #267 from native-window-decorations
...
Native window decorations for Windows 10 (using JNI)
2021-03-12 23:15:19 +01:00
Karl Tauber
83e904dd2d
Merge pull request #262 from native-window-decorations-jna
...
Native window decorations for Windows 10 (using JNA)
2021-03-12 23:08:35 +01:00
Karl Tauber
7c7ff289de
removed module java.logging from module-info.javas
2021-03-12 22:52:59 +01:00
Karl Tauber
617a35c51b
LoggingFacade:
...
- make LoggingFacadeImpl classes package private
- added missing @Override
- minor formatting changes
2021-03-12 21:16:57 +01:00
Karl Tauber
73487ccf65
Native window decorations:
...
- enabled by default (via UI property `TitlePane.useWindowDecorations`)
- dropped system property `flatlaf.useNativeWindowDecorations` and replaced with `flatlaf.useWindowDecorations`
- old functionality of system property `flatlaf.useWindowDecorations` removed
2021-03-11 10:54:23 +01:00
Ingo Kegel
712bff9c99
Use System.Logger for logging with Java 9+
2021-03-10 17:56:27 +01:00
Ingo Kegel
eedfcf86aa
LoggingFacade: moved to com.formdev.flatlaf.util, added license header, fixed NPEs in logging calls and removed overloads of logSevere
2021-03-10 17:06:12 +01:00
Karl Tauber
f730848928
Native window decorations: added flatlaf-windows-x86_64.dll
...
built by GitHub Actions:
https://github.com/JFormDesigner/FlatLaf/actions/runs/636694710
2021-03-10 16:16:50 +01:00
Karl Tauber
2f01e01ec1
Native window decorations: delete temporary DLLs on next startup (same approach as used in JNA)
2021-03-07 00:10:15 +01:00
Ingo Kegel
343451de65
Make the module dependency on java.logging optional
...
Currently, FlatLaf has the following module dependencies:
$ jdeps --list-deps --multi-release 9 flatlaf-1.0.jar
java.base
java.desktop
java.logging
This commit makes the java.logging dependency optional and hides logging behind a facade that falls back to printing to stderr if the java.logging module is not available.
To test, create a reduced JRE with a command like
jdk-15/bin/jlink.exe --module-path jdk-15/jmods --add-modules java.desktop --add-modules java.instrument --output jre-15-desktop-only
(adding java.instrument, so the FlatLafDemo main class can be started from IntelliJ IDEA)
2021-03-05 16:44:08 +01:00