mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore mac/text.png
GitOrigin-RevId: c15b813dd4842cc8a976470929b6aa3de02bcde5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
eaa105d145
commit
222e076e86
Binary file not shown.
|
After Width: | Height: | Size: 209 B |
Binary file not shown.
|
After Width: | Height: | Size: 355 B |
@@ -15,7 +15,6 @@ import java.awt.event.MouseEvent;
|
||||
public final class MacUIUtil {
|
||||
public static final boolean USE_QUARTZ = "true".equals(System.getProperty("apple.awt.graphics.UseQuartz"));
|
||||
public static final String MAC_FILL_BORDER = "MAC_FILL_BORDER";
|
||||
public static final int MAC_COMBO_BORDER_V_OFFSET = 1;
|
||||
private static Cursor INVERTED_TEXT_CURSOR;
|
||||
|
||||
private MacUIUtil() {}
|
||||
@@ -28,11 +27,11 @@ public final class MacUIUtil {
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static Cursor getInvertedTextCursor() {
|
||||
public static @NotNull Cursor getInvertedTextCursor() {
|
||||
if (INVERTED_TEXT_CURSOR == null) {
|
||||
final Toolkit toolkit = Toolkit.getDefaultToolkit();
|
||||
Image cursorImage = toolkit.getImage(MacUIUtil.class.getClassLoader().getResource("mac/text.png")); // will also load text@2x.png
|
||||
Toolkit toolkit = Toolkit.getDefaultToolkit();
|
||||
// will also load text@2x.png
|
||||
Image cursorImage = toolkit.getImage(MacUIUtil.class.getClassLoader().getResource("mac/text.png"));
|
||||
INVERTED_TEXT_CURSOR = toolkit.createCustomCursor(cursorImage, new Point(15, 13), "InvertedTextCursor");
|
||||
}
|
||||
return INVERTED_TEXT_CURSOR;
|
||||
|
||||
Reference in New Issue
Block a user