mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-197007: deprecate Diff & CurrentLine icons in AllIcons.Diff
This commit is contained in:
@@ -116,7 +116,7 @@ public class JdkPopupAction extends AnAction {
|
||||
if (selectedFile != null) {
|
||||
selected = homes.getFirst().getAbsolutePath().equals(VfsUtilCore.virtualToIoFile(selectedFile).getAbsolutePath());
|
||||
}
|
||||
e.getPresentation().setIcon(selected ? AllIcons.Diff.CurrentLine : null);
|
||||
e.getPresentation().setIcon(selected ? AllIcons.Actions.Forward : null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -71,7 +71,7 @@ public class AnnotationsPanel {
|
||||
int column) {
|
||||
append((String)value, SimpleTextAttributes.REGULAR_ATTRIBUTES);
|
||||
if (value.equals(myDefaultAnnotation)) {
|
||||
setIcon(AllIcons.Diff.CurrentLine);
|
||||
setIcon(AllIcons.Actions.Forward);
|
||||
}
|
||||
else {
|
||||
setIcon(EmptyIcon.ICON_16);
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ class BlockingAnnotationsPanel {
|
||||
int column) {
|
||||
append((String)value, SimpleTextAttributes.REGULAR_ATTRIBUTES);
|
||||
if (value.equals(myDefaultAnnotation)) {
|
||||
setIcon(AllIcons.Diff.CurrentLine);
|
||||
setIcon(AllIcons.Actions.Forward);
|
||||
}
|
||||
else {
|
||||
setIcon(EmptyIcon.ICON_16);
|
||||
|
||||
|
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 541 B |
@@ -0,0 +1,2 @@
|
||||
deprecated: currentLine.png; to be removed in IDEA 2020 - use AllIcons.Actions.Forward
|
||||
deprecated: Diff.png; to be removed in IDEA 2020 - use AllIcons.Actions.Diff
|
||||
@@ -1,2 +1 @@
|
||||
skip: diff_frame*
|
||||
deprecated: diff/Diff.png
|
||||
|
||||
@@ -32,7 +32,7 @@ import javax.swing.*;
|
||||
*/
|
||||
public abstract class QuickSwitchSchemeAction extends AnAction implements DumbAware {
|
||||
|
||||
protected static final Icon ourCurrentAction = AllIcons.Diff.CurrentLine;
|
||||
protected static final Icon ourCurrentAction = AllIcons.Actions.Forward;
|
||||
protected static final Icon ourNotCurrentAction = EmptyIcon.create(ourCurrentAction.getIconWidth(), ourCurrentAction.getIconHeight());
|
||||
|
||||
protected String myActionPlace = ActionPlaces.UNKNOWN;
|
||||
|
||||
@@ -723,16 +723,21 @@ public class AllIcons {
|
||||
public static final Icon Compare4MiddleBottom = IconLoader.getIcon("/diff/compare4MiddleBottom.png"); // 16x16
|
||||
public static final Icon Compare4MiddleRight = IconLoader.getIcon("/diff/compare4MiddleRight.png"); // 16x16
|
||||
public static final Icon Compare4RightBottom = IconLoader.getIcon("/diff/compare4RightBottom.png"); // 16x16
|
||||
public static final Icon CurrentLine = IconLoader.getIcon("/diff/currentLine.png"); // 16x16
|
||||
public static final Icon GutterCheckBox = IconLoader.getIcon("/diff/gutterCheckBox.svg"); // 12x12
|
||||
public static final Icon GutterCheckBoxSelected = IconLoader.getIcon("/diff/gutterCheckBoxSelected.svg"); // 12x12
|
||||
public static final Icon MagicResolve = IconLoader.getIcon("/diff/magicResolve.svg"); // 12x12
|
||||
public static final Icon MagicResolveToolbar = IconLoader.getIcon("/diff/magicResolveToolbar.svg"); // 16x16
|
||||
public static final Icon Remove = IconLoader.getIcon("/diff/remove.svg"); // 12x12
|
||||
|
||||
/** @deprecated to be removed in IDEA 2020 - use AllIcons.Actions.Forward */
|
||||
@SuppressWarnings("unused")
|
||||
@Deprecated
|
||||
public static final Icon Diff = IconLoader.getIcon("/diff/Diff.png");
|
||||
public static final Icon CurrentLine = AllIcons.Actions.Forward;
|
||||
|
||||
/** @deprecated to be removed in IDEA 2020 - use AllIcons.Actions.Diff */
|
||||
@SuppressWarnings("unused")
|
||||
@Deprecated
|
||||
public static final Icon Diff = AllIcons.Actions.Diff;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user