mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
Compare commits
4 Commits
465254c0da
...
84e95764fa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84e95764fa | ||
|
|
1a80a65411 | ||
|
|
bf2227e1b8 | ||
|
|
7fc26fe77e |
@@ -5,11 +5,15 @@ FlatLaf Change Log
|
|||||||
|
|
||||||
- ComboBox: Added UI property `ComboBox.buttonFocusedEditableBackground`. (issue
|
- ComboBox: Added UI property `ComboBox.buttonFocusedEditableBackground`. (issue
|
||||||
#1068)
|
#1068)
|
||||||
|
- Dialog: Some client properties (e.g. `JRootPane.titleBarShowTitle`) did not
|
||||||
|
work before the dialog was made visible. (issue #1081)
|
||||||
- Popup: Fixed scrolling popup painting issue on Windows 10 when a glass pane is
|
- Popup: Fixed scrolling popup painting issue on Windows 10 when a glass pane is
|
||||||
visible and frame is maximized. (issue #1071)
|
visible and frame is maximized. (issue #1071)
|
||||||
- Slider: Styling `thumbSize` or `focusWidth` did not update slider size/layout.
|
- Slider: Styling `thumbSize` or `focusWidth` did not update slider size/layout.
|
||||||
(PR #1074)
|
(PR #1074)
|
||||||
- ToolBar: Grip disappeared when switching between Look and Feels. (issue #1075)
|
- ToolBar: Grip disappeared when switching between Look and Feels. (issue #1075)
|
||||||
|
- macOS: Popups (menus and combobox lists) were not always hidden when window is
|
||||||
|
resized. (issue #1082)
|
||||||
- Extras:
|
- Extras:
|
||||||
- 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.
|
||||||
|
|||||||
@@ -310,8 +310,8 @@ public abstract class FlatLaf
|
|||||||
// install submenu usability helper
|
// install submenu usability helper
|
||||||
subMenuUsabilityHelperInstalled = SubMenuUsabilityHelper.install();
|
subMenuUsabilityHelperInstalled = SubMenuUsabilityHelper.install();
|
||||||
|
|
||||||
// install Linux popup menu canceler
|
// install Linux/macOS popup menu canceler
|
||||||
if( SystemInfo.isLinux )
|
if( SystemInfo.isLinux || SystemInfo.isMacOS )
|
||||||
linuxPopupMenuCanceler = new LinuxPopupMenuCanceler();
|
linuxPopupMenuCanceler = new LinuxPopupMenuCanceler();
|
||||||
|
|
||||||
// listen to desktop property changes to update UI if system font or scaling changes
|
// listen to desktop property changes to update UI if system font or scaling changes
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import javax.swing.event.ChangeEvent;
|
|||||||
import javax.swing.event.ChangeListener;
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels (hides) popup menus on Linux.
|
* Cancels (hides) popup menus on Linux and macOS.
|
||||||
* <p>
|
* <p>
|
||||||
* On Linux, popups are not hidden under following conditions, which results in
|
* On Linux, popups are not hidden under following conditions, which results in
|
||||||
* misplaced popups:
|
* misplaced popups:
|
||||||
@@ -41,7 +41,13 @@ import javax.swing.event.ChangeListener;
|
|||||||
* <li>window deactivated (e.g. activated other application)
|
* <li>window deactivated (e.g. activated other application)
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* On Windows and macOS, popups are automatically hidden.
|
* On macOS, popups are usually automatically hidden, but not always.
|
||||||
|
* When resizing a window, then it depends where clicking to start resizing (and on the Java version).
|
||||||
|
* E.g. with Java 25, clicking at bottom-right corner inside of the window does not hide the popups.
|
||||||
|
* But clicking on same corner outside of the window, hides the popup.
|
||||||
|
*
|
||||||
|
* <p>
|
||||||
|
* On Windows, popups are automatically hidden.
|
||||||
* <p>
|
* <p>
|
||||||
* The implementation is similar to what's done in
|
* The implementation is similar to what's done in
|
||||||
* {@code javax.swing.plaf.basic.BasicPopupMenuUI.MouseGrabber},
|
* {@code javax.swing.plaf.basic.BasicPopupMenuUI.MouseGrabber},
|
||||||
|
|||||||
@@ -484,7 +484,7 @@ public class FlatTitlePane
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void frameStateChanged() {
|
protected void frameStateChanged() {
|
||||||
if( window == null || rootPane.getWindowDecorationStyle() != JRootPane.FRAME )
|
if( window == null || rootPane.getWindowDecorationStyle() == JRootPane.NONE )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
updateVisibility();
|
updateVisibility();
|
||||||
|
|||||||
@@ -524,7 +524,9 @@ public class FlatSVGIcon
|
|||||||
private URL getIconURL( String name, boolean dark ) {
|
private URL getIconURL( String name, boolean dark ) {
|
||||||
if( dark ) {
|
if( dark ) {
|
||||||
int dotIndex = name.lastIndexOf( '.' );
|
int dotIndex = name.lastIndexOf( '.' );
|
||||||
name = name.substring( 0, dotIndex ) + "_dark" + name.substring( dotIndex );
|
name = (dotIndex > 0)
|
||||||
|
? name.substring( 0, dotIndex ) + "_dark" + name.substring( dotIndex )
|
||||||
|
: name + "_dark";
|
||||||
}
|
}
|
||||||
|
|
||||||
ClassLoader cl = (classLoader != null) ? classLoader : FlatSVGIcon.class.getClassLoader();
|
ClassLoader cl = (classLoader != null) ? classLoader : FlatSVGIcon.class.getClassLoader();
|
||||||
|
|||||||
Reference in New Issue
Block a user