UI defaults inspector: fixed key rendering for Nimbus Laf

This commit is contained in:
Karl Tauber
2020-10-04 14:03:39 +02:00
parent 9c2c03cddb
commit 01058bde1b

View File

@@ -746,7 +746,8 @@ public class FlatUIDefaultsInspector
int dot = key.indexOf( '.' );
if( dot > 0 && !selected ) {
g.setColor( UIManager.getColor( "Label.disabledForeground" ) );
g.setColor( FlatUIUtils.getUIColor( "Label.disabledForeground",
FlatUIUtils.getUIColor( "Label.disabledText", Color.gray ) ) );
if( dot >= clippedText.length() )
FlatUIUtils.drawString( this, g, clippedText, x, y );