Theme Editor: ignore custom UI delegates in preview

This commit is contained in:
Karl Tauber
2021-08-23 15:00:28 +02:00
parent 506543281e
commit ebb8a6d025

View File

@@ -108,6 +108,11 @@ class FlatThemePreview
if( !(key instanceof String) )
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 );
if( value instanceof LazyValue )
value = ((LazyValue)value).createValue( null );