Ingo Kegel
ae8323e2f8
Added ButtonType.borderLess for buttons that look like toolbar buttons but have a focus indicator.
...
This behavior can be achieved with JideButton, but it would be preferable to use FlatButton instead.
2021-03-22 16:45:37 +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
Karl Tauber
144d65c776
Native window decorations: initial implementation in C++ using JNI
2021-03-05 10:31:31 +01:00
Karl Tauber
a6815574f7
Native window decorations: renamed project flatlaf-native-jna to flatlaf-natives/flatlaf-natives-jna
...
removed module-info.java because this JAR is not released/published
2021-03-04 11:04:47 +01:00
Karl Tauber
7341008449
Native window decorations: fixed missing top border line
2021-02-24 23:17:41 +01:00
Karl Tauber
49bd53194a
Native window decorations: show window system menu when left-clicking on application icon, close window on left-double-click on app icon
2021-02-23 23:31:36 +01:00
Karl Tauber
e41c91a42b
Native window decorations: fixed exception when switching Laf after closing a dialog
2021-02-22 09:56:40 +01:00
Karl Tauber
b9a2e3ceac
Native window decorations: initial implementation (using JNA; will be replaced with JNI later)
2021-02-21 17:51:19 +01:00
Karl Tauber
698e33ddf4
IntelliJ Themes: fixed text color of CheckBoxMenuItem and RadioButtonMenuItem in all "Arc" themes (issue #259 )
2021-02-19 11:33:15 +01:00
Karl Tauber
510ffd41d8
PopupFactory: fixed NullPointerException when PopupFactory.getPopup() is invoked with parameter owner set to null
2021-02-13 13:31:30 +01:00
Karl Tauber
4f00591c4e
Table: fixed wrong grid line thickness in dragged column on HiDPI screens on Java 9+ (issue #236 )
2021-02-12 11:32:12 +01:00
Karl Tauber
5b65ed87cd
FileChooser: fixed display of date in details view if current user is selected in "Look in" combobox (Windows 10 only; issue #249 )
2021-02-12 11:10:25 +01:00
Karl Tauber
b5fc07acc7
TabbedPane: custom TabbedPane.selectedForeground color did not work when TabbedPane.foreground has also custom color (issue #257 )
2021-02-11 12:04:36 +01:00
Karl Tauber
86c33dd686
fixed javadoc syntax error
2021-02-06 11:26:57 +01:00
Karl Tauber
a38cf284dd
UI defaults inspector: show color functions in value tooltips
2021-02-06 01:31:34 +01:00
Karl Tauber
b631bcc0db
UIDefaultsLoader: check for endless recursion in parsing color functions (e.g. abc = darken($abc,10%))
2021-02-05 23:30:48 +01:00
Karl Tauber
5ccd92ece6
CheckBox: fixed background of check boxes in JIDE CheckBoxTree (broken since commit dd8ab242fb)
2021-02-04 19:41:14 +01:00
Karl Tauber
2f3c8868a7
IntelliJ Themes: fixed table header background when dragging column in "Dark Flat" and "Light Flat" themes
2021-02-04 19:18:06 +01:00
Karl Tauber
be507de6c1
Label and ToolTip: made inserting BASE_SIZE rule into HTML text more reliable
2021-02-04 15:10:27 +01:00
Karl Tauber
e5d3c08821
Fixed color of <address> tag in HTML text
2021-02-04 12:58:14 +01:00
Karl Tauber
027b4ab7da
Label and ToolTip: fixed font sizes for <code>, <kbd>, <big>, <small> and <samp> tags in HTML text
...
ToolTip: update font size if `tiptext` property changes
2021-02-04 12:56:18 +01:00
Karl Tauber
02f7cd77f4
FlatBorder: fixed wrong round edge of focused components in themes without outer focus border (Flat Light/Dark)
2021-02-01 01:30:52 +01:00
Karl Tauber
7f8f3aa99b
Button: undone most style changes done in previous commit related to focused and default buttons:
...
- default button: white background and wide border
- focused button: light blue background and thin border
(the light blue default button did not look beautiful IMHO)
2021-02-01 01:08:20 +01:00
Karl Tauber
0bcdc14909
- Button:
...
- In "Flat Light" theme, changed styles of focused and default buttons to
avoid confusion with all other themes. Focused buttons now have a white
background (was light blue) and a slightly wider border. The default button
now has a light blue background (was white) and a thin border. In all other
themes the default button also has colored background.
- In "Flat Dark" theme, use slightly wider border for focused buttons.
- CheckBox and RadioButton: In "Flat Dark" theme, use blueish background for
focused components.
2021-01-31 20:02:24 +01:00
Karl Tauber
f48da9dab1
FlatComponentStateTest: added text field and combobox (for comparison)
2021-01-31 16:17:47 +01:00
Karl Tauber
212ae90401
client property "JComponent.focusOwner" added to allow customizing detection of focused state (issue #185 )
2021-01-30 17:54:47 +01:00
Karl Tauber
d4e5d0be45
javadoc fixes
2021-01-30 17:46:53 +01:00
Karl Tauber
3520a0f1fb
TextComponents: border of focused non-editable text components had wrong color
2021-01-30 01:06:03 +01:00