mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 14:37:13 -06:00
macOS: native rounded borders for popups (issue #715)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#---- ComboBox ----
|
||||
|
||||
+ ComboBox.roundedBorderWidth 1
|
||||
+ ComboBox.showPopupOnNavigation true
|
||||
|
||||
|
||||
@@ -46,6 +47,16 @@
|
||||
+ OptionPane.isYesLast true
|
||||
|
||||
|
||||
#---- Popup ----
|
||||
|
||||
+ Popup.roundedBorderWidth 1
|
||||
|
||||
|
||||
#---- PopupMenu ----
|
||||
|
||||
+ PopupMenu.roundedBorderWidth 1
|
||||
|
||||
|
||||
#---- ProgressBar ----
|
||||
|
||||
- ProgressBar.font [active] Segoe UI plain 10 javax.swing.plaf.FontUIResource [UI]
|
||||
@@ -77,6 +88,11 @@
|
||||
|
||||
- TitlePane.small.font [active] Segoe UI plain 11 javax.swing.plaf.FontUIResource [UI]
|
||||
+ TitlePane.small.font [active] Helvetica Neue plain 12 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- ToolTip ----
|
||||
|
||||
+ ToolTip.roundedBorderWidth 1
|
||||
- defaultFont Segoe UI plain 12 javax.swing.plaf.FontUIResource [UI]
|
||||
+ defaultFont Helvetica Neue plain 13 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#---- ComboBox ----
|
||||
|
||||
+ ComboBox.roundedBorderWidth 0
|
||||
+ ComboBox.showPopupOnNavigation true
|
||||
|
||||
|
||||
@@ -46,6 +47,16 @@
|
||||
+ OptionPane.isYesLast true
|
||||
|
||||
|
||||
#---- Popup ----
|
||||
|
||||
+ Popup.roundedBorderWidth 0
|
||||
|
||||
|
||||
#---- PopupMenu ----
|
||||
|
||||
+ PopupMenu.roundedBorderWidth 0
|
||||
|
||||
|
||||
#---- ProgressBar ----
|
||||
|
||||
- ProgressBar.font [active] Segoe UI plain 10 javax.swing.plaf.FontUIResource [UI]
|
||||
@@ -77,6 +88,11 @@
|
||||
|
||||
- TitlePane.small.font [active] Segoe UI plain 11 javax.swing.plaf.FontUIResource [UI]
|
||||
+ TitlePane.small.font [active] Helvetica Neue plain 12 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
#---- ToolTip ----
|
||||
|
||||
+ ToolTip.roundedBorderWidth 0
|
||||
- defaultFont Segoe UI plain 12 javax.swing.plaf.FontUIResource [UI]
|
||||
+ defaultFont Helvetica Neue plain 13 javax.swing.plaf.FontUIResource [UI]
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
package com.formdev.flatlaf.testing;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.Point;
|
||||
import javax.swing.*;
|
||||
import com.formdev.flatlaf.util.Animator;
|
||||
import net.miginfocom.swing.*;
|
||||
@@ -88,6 +87,17 @@ public class FlatPopupTest
|
||||
animator.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateUI() {
|
||||
super.updateUI();
|
||||
|
||||
if( popupMenu1 != null ) {
|
||||
SwingUtilities.updateComponentTreeUI( popupMenu1 );
|
||||
SwingUtilities.updateComponentTreeUI( popupMenu2 );
|
||||
SwingUtilities.updateComponentTreeUI( popupPanel );
|
||||
}
|
||||
}
|
||||
|
||||
private void initComponents() {
|
||||
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
|
||||
label1 = new JLabel();
|
||||
|
||||
Reference in New Issue
Block a user