mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +03:00
Merge remote-tracking branch 'origin/release-1.6.4' into main
# Conflicts: # CHANGELOG.md
This commit is contained in:
@@ -60,6 +60,15 @@ FlatLaf Change Log
|
|||||||
- `FlatSVGUtils`: Support loading SVG from `URL` (for JPMS). (issue #325)
|
- `FlatSVGUtils`: Support loading SVG from `URL` (for JPMS). (issue #325)
|
||||||
|
|
||||||
|
|
||||||
|
## 1.6.4
|
||||||
|
|
||||||
|
#### Fixed bugs
|
||||||
|
|
||||||
|
- ComboBox: Fixed regression in FlatLaf 1.6.3 that makes selected item invisible
|
||||||
|
in popup list if `DefaultListCellRenderer` is used as renderer. If using
|
||||||
|
default renderer, it works. (issue #426)
|
||||||
|
|
||||||
|
|
||||||
## 1.6.3
|
## 1.6.3
|
||||||
|
|
||||||
#### Fixed bugs
|
#### Fixed bugs
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
val releaseVersion = "1.6.3"
|
val releaseVersion = "1.6.4"
|
||||||
val developmentVersion = "2.0-SNAPSHOT"
|
val developmentVersion = "2.0-SNAPSHOT"
|
||||||
|
|
||||||
version = if( java.lang.Boolean.getBoolean( "release" ) ) releaseVersion else developmentVersion
|
version = if( java.lang.Boolean.getBoolean( "release" ) ) releaseVersion else developmentVersion
|
||||||
|
|||||||
@@ -591,11 +591,8 @@ public class FlatComboBoxUI
|
|||||||
// make renderer component temporary non-opaque to avoid that renderer paints
|
// make renderer component temporary non-opaque to avoid that renderer paints
|
||||||
// background outside of border if combobox uses larger arc for edges
|
// background outside of border if combobox uses larger arc for edges
|
||||||
// (e.g. FlatClientProperties.COMPONENT_ROUND_RECT is true)
|
// (e.g. FlatClientProperties.COMPONENT_ROUND_RECT is true)
|
||||||
boolean oldOpaque = true;
|
if( c instanceof JComponent )
|
||||||
if( c instanceof JComponent ) {
|
|
||||||
oldOpaque = ((JComponent)c).isOpaque();
|
|
||||||
((JComponent)c).setOpaque( false );
|
((JComponent)c).setOpaque( false );
|
||||||
}
|
|
||||||
|
|
||||||
boolean shouldValidate = (c instanceof JPanel);
|
boolean shouldValidate = (c instanceof JPanel);
|
||||||
|
|
||||||
@@ -604,7 +601,7 @@ public class FlatComboBoxUI
|
|||||||
paddingBorder.uninstall();
|
paddingBorder.uninstall();
|
||||||
|
|
||||||
if( c instanceof JComponent )
|
if( c instanceof JComponent )
|
||||||
((JComponent)c).setOpaque( oldOpaque );
|
((JComponent)c).setOpaque( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1621,6 +1621,7 @@ public class FlatComponentsTest
|
|||||||
// customRenderer.setBorder( new LineBorder( Color.red ) );
|
// customRenderer.setBorder( new LineBorder( Color.red ) );
|
||||||
// comboBox1.setRenderer( customRenderer );
|
// comboBox1.setRenderer( customRenderer );
|
||||||
// comboBox3.setRenderer( customRenderer );
|
// comboBox3.setRenderer( customRenderer );
|
||||||
|
// comboBox5.setRenderer( new DefaultListCellRenderer() );
|
||||||
|
|
||||||
// for testing issue #382
|
// for testing issue #382
|
||||||
// spinner1.setModel( new SpinnerNumberModel( 0, null, 100, 1 ) );
|
// spinner1.setModel( new SpinnerNumberModel( 0, null, 100, 1 ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user