use of com.intellij.ide.ui.laf.darcula.ui.DarculaTextFieldUI in project android by JetBrains.
the class SearchField method updateTheme.
private void updateTheme() {
JTextField editor = getTextEditor();
if (editor != null) {
if (!SystemInfo.isMac) {
editor.putClientProperty("JTextField.variant", "search");
if (!(editor.getUI() instanceof DarculaTextFieldUI)) {
editor.setUI((DarculaTextFieldUI) DarculaTextFieldUI.createUI(editor));
editor.setBorder(new DarculaTextBorder());
}
}
updateBackground();
}
}
Aggregations