JIDE: made used fonts "active" and restored fonts modified in LookAndFeelFactory.installJideExtension()

This commit is contained in:
Karl Tauber
2021-03-16 23:23:40 +01:00
parent 3d0df51839
commit 310a4989dc
4 changed files with 29 additions and 47 deletions

View File

@@ -473,7 +473,7 @@ public abstract class FlatLaf
// use active value for all fonts to allow changing fonts in all components
// (similar as in Nimbus L&F) with:
// UIManager.put( "defaultFont", myFont );
Object activeFont = new ActiveFont( 1 );
Object activeFont = new ActiveFont( 1 );
// override fonts
for( Object key : defaults.keySet() ) {
@@ -496,6 +496,10 @@ public abstract class FlatLaf
return (font instanceof FontUIResource) ? (FontUIResource) font : new FontUIResource( font );
}
public static ActiveValue createActiveFontValue( float scaleFactor ) {
return new ActiveFont( scaleFactor );
}
/**
* Adds the default color palette for action icons and object icons to the given UIDefaults.
* <p>