Search in sources :

Example 1 with DarculaTextFieldUI

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();
    }
}
Also used : DarculaTextFieldUI(com.intellij.ide.ui.laf.darcula.ui.DarculaTextFieldUI) DarculaTextBorder(com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder)

Aggregations

DarculaTextBorder (com.intellij.ide.ui.laf.darcula.ui.DarculaTextBorder)1 DarculaTextFieldUI (com.intellij.ide.ui.laf.darcula.ui.DarculaTextFieldUI)1