fix UI compatibility with Nimbus L&F (RUBY-5695)