mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-199508: New Search Field: replace clean icon with close one
This commit is contained in:
@@ -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);
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user