IDEA-199508: New Search Field: replace clean icon with close one

This commit is contained in:
Sergey Malenkov
2018-12-04 17:45:16 +03:00
parent 54498c0d29
commit 22cfdf51cd
3 changed files with 3 additions and 3 deletions
@@ -431,7 +431,7 @@ public class SearchTextArea extends NonOpaquePanel implements PropertyChangeList
abstract Icon getShowHistoryIcon();
Icon getClearIcon() {
return AllIcons.Actions.Clear;
return AllIcons.Actions.Close;
}
abstract void paint(Graphics2D g);
@@ -91,7 +91,7 @@ public abstract class TextFieldWithPopupHandlerUI extends BasicTextFieldUI imple
* @return a clear icon in one of the four states or {@code null} to hide it
*/
protected Icon getClearIcon(boolean hovered, boolean clickable) {
return !clickable ? null : hovered ? AllIcons.Actions.Clean : AllIcons.Actions.CleanLight;
return !clickable ? null : hovered ? AllIcons.Actions.CloseHovered : AllIcons.Actions.Close;
}
/**
@@ -129,7 +129,7 @@ public class TestTextFieldAction extends DumbAwareAction {
icon.setForeground(getBackground());
return icon;
}
return hovered ? AllIcons.Actions.Clean : AllIcons.Actions.CleanLight;
return hovered ? AllIcons.Actions.CloseHovered : AllIcons.Actions.Close;
}
@Override