Page 1 of 1

Text been cut off in dark mode

Posted: Thu Dec 05, 2024 6:44 pm
by yuanyuan_li
Hi I have a plugin which uses JAVA Swing and it has a JComboBox in a JPanel. The text is displayed ok in Light mode. But if I changed to Graphite theme, the last closing bracket was cut off.

I am on Oxygen version 26. Any ideas why this would happen in dark mode?
image.png
image.png

Re: Text been cut off in dark mode

Posted: Fri Dec 06, 2024 10:17 am
by Radu
Hi,
I do not know why the combo box cuts the value when Oxygen runs in dark mode. When creating the combo box could you use our "ro.sync.exml.workspace.api.standalone.ui.OxygenUIComponentsFactory.createComboBox(ComboBoxModel)" API? Maybe it will look and behave more like an Oxygen combo box.

Regards,
Radu