mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
Theme Editor: ignore custom UI delegates in preview
This commit is contained in:
@@ -108,6 +108,11 @@ class FlatThemePreview
|
|||||||
if( !(key instanceof String) )
|
if( !(key instanceof String) )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
// ignore custom UI delegates for preview because those classes
|
||||||
|
// are not available in theme editor
|
||||||
|
if( ((String)key).endsWith( "UI" ) )
|
||||||
|
return null;
|
||||||
|
|
||||||
Object value = textArea.propertiesSupport.getParsedProperty( (String) key );
|
Object value = textArea.propertiesSupport.getParsedProperty( (String) key );
|
||||||
if( value instanceof LazyValue )
|
if( value instanceof LazyValue )
|
||||||
value = ((LazyValue)value).createValue( null );
|
value = ((LazyValue)value).createValue( null );
|
||||||
|
|||||||
Reference in New Issue
Block a user