From c0b3ec059084528a46c704ace702dc7cfacdc8cd Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 23 Nov 2017 23:44:44 +0100 Subject: [PATCH] change cursor file for macOS --- platform/icons/src/mac/text.gif | Bin 915 -> 0 bytes platform/icons/src/mac/text.png | Bin 0 -> 209 bytes platform/icons/src/mac/text@2x.png | Bin 0 -> 355 bytes .../util/src/com/intellij/icons/AllIcons.java | 2 +- .../src/com/intellij/util/ui/MacUIUtil.java | 30 ++++++++---------- 5 files changed, 15 insertions(+), 17 deletions(-) delete mode 100644 platform/icons/src/mac/text.gif create mode 100644 platform/icons/src/mac/text.png create mode 100644 platform/icons/src/mac/text@2x.png diff --git a/platform/icons/src/mac/text.gif b/platform/icons/src/mac/text.gif deleted file mode 100644 index ede84c770696d5a4220c521817cd0ec76d5292d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 915 zcmZ?wbhEHbRA5kG_|5+Z^f#E-c4#?Y}Ji)+G!0?|_ z#$&^RgUuYmS}`X!EIiyUpzJm0hC##8Mlt4qBN`43#~5Ty^Zrb~xcGRtvSpW#r@#}h zX-u()a$XiL^O~&^yU&Mn!D0pmGu?SdG$&{HF1C&oahFh*xskXH8 z$FMw^vvta%wWe?P#*5iKl4F{*b+3}5L(vbha_4InYqA!`c&y*q-f;YTg7AVVuf#5Z;eSVy!jCz^52cQI2EF<53Ft-!Pgg&e IbxsLQ095i(<^TWy literal 0 HcmV?d00001 diff --git a/platform/icons/src/mac/text@2x.png b/platform/icons/src/mac/text@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ddf127fc7c892dec177e3defaae81a546cd9206 GIT binary patch literal 355 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7T#lEVAS$-aSW-r^>)_9-opw!4w8+6 zMow-CEN(A2Bo(DoT6!)7S}`dbF!ips=qkDssvfF7_wT%vPPXrd*Ru*LumH_rU}!jh zNiT5wj{L&cPwsu&ckAaoNyg_I(NAno&A#(r*FkgXmej~w20ZayQ_?S~TXtD8rZ0(j zJH3qGm?_9>{RzwMrLp}?OKbn?SkB5XbP0l+XkK@q3Jf literal 0 HcmV?d00001 diff --git a/platform/util/src/com/intellij/icons/AllIcons.java b/platform/util/src/com/intellij/icons/AllIcons.java index 69d1cb98b2b9..8f7908e9aaca 100644 --- a/platform/util/src/com/intellij/icons/AllIcons.java +++ b/platform/util/src/com/intellij/icons/AllIcons.java @@ -822,7 +822,7 @@ public class AllIcons { public static class Mac { public static final Icon AppIconOk512 = IconLoader.getIcon("/mac/appIconOk512.png"); // 55x55 - public static final Icon Text = IconLoader.getIcon("/mac/text.gif"); // 32x32 + public static final Icon Text = IconLoader.getIcon("/mac/text.png"); // 32x32 public static final Icon Tree_black_right_arrow = IconLoader.getIcon("/mac/tree_black_right_arrow.png"); // 11x11 public static final Icon Tree_white_down_arrow = IconLoader.getIcon("/mac/tree_white_down_arrow.png"); // 11x11 public static final Icon Tree_white_right_arrow = IconLoader.getIcon("/mac/tree_white_right_arrow.png"); // 11x11 diff --git a/platform/util/src/com/intellij/util/ui/MacUIUtil.java b/platform/util/src/com/intellij/util/ui/MacUIUtil.java index 737e3dfc7a8b..9d2051a8d130 100644 --- a/platform/util/src/com/intellij/util/ui/MacUIUtil.java +++ b/platform/util/src/com/intellij/util/ui/MacUIUtil.java @@ -1,18 +1,16 @@ -/* - * Copyright 2000-2012 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package com.intellij.util.ui; import com.intellij.openapi.util.SystemInfo; @@ -215,7 +213,7 @@ public class MacUIUtil { public static Cursor getInvertedTextCursor() { if (INVERTED_TEXT_CURSOR == null) { final Toolkit toolkit = Toolkit.getDefaultToolkit(); - Image cursorImage = toolkit.createImage(MacUIUtil.class.getClassLoader().getResource("/mac/text.gif")); + Image cursorImage = toolkit.createImage(MacUIUtil.class.getClassLoader().getResource("/mac/text.png")); INVERTED_TEXT_CURSOR = toolkit.createCustomCursor(cursorImage, new Point(15, 13), "InvertedTextCursor"); } return INVERTED_TEXT_CURSOR;