[images/platform] move image filetype icon to platform

GitOrigin-RevId: 778ee4998c399df1c4f519dc221d63fe35b2f36a
This commit is contained in:
Ivan Semenov
2023-04-17 17:25:55 +02:00
committed by intellij-monorepo-bot
parent 7a0fd3d2bc
commit ec4e07821c
10 changed files with 9 additions and 8 deletions

View File

@@ -4,7 +4,6 @@
"images": {
"icons": {
"expui": {
"image.svg": "org/intellij/images/icons/ImagesFileType.svg",
"chessboard.svg": "org/intellij/images/icons/ToggleTransparencyChessboard.svg"
}
}

View File

@@ -14,7 +14,6 @@ public final class ImagesIcons {
private static @NotNull Icon load(@NotNull String path, int cacheKey, int flags) {
return IconManager.getInstance().loadRasterizedIcon(path, ImagesIcons.class.getClassLoader(), cacheKey, flags);
}
/** 16x16 */ public static final @NotNull Icon ImagesFileType = load("org/intellij/images/icons/ImagesFileType.svg", -522473644, 0);
/** 75x86 */ public static final @NotNull Icon ThumbnailBlank = load("org/intellij/images/icons/ThumbnailBlank.png", 0, 2);
/** 75x82 */ public static final @NotNull Icon ThumbnailDirectory = load("org/intellij/images/icons/ThumbnailDirectory.png", 0, 0);
/** 13x13 */ public static final @NotNull Icon ThumbnailToolWindow = load("org/intellij/images/icons/ThumbnailToolWindow.svg", -1802959248, 2);

View File

@@ -1,9 +1,9 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.intellij.images.fileTypes.impl;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.fileTypes.UserBinaryFileType;
import org.intellij.images.ImagesBundle;
import org.intellij.images.ImagesIcons;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
@@ -35,6 +35,6 @@ public final class ImageFileType extends UserBinaryFileType {
@Override
public Icon getIcon() {
return ImagesIcons.ImagesFileType;
return AllIcons.FileTypes.Image;
}
}

View File

@@ -1,10 +1,10 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.intellij.images.fileTypes.impl;
import com.intellij.icons.AllIcons;
import com.intellij.ide.IdeBundle;
import com.intellij.ide.highlighter.XmlLikeFileType;
import com.intellij.openapi.fileTypes.UIBasedFileType;
import org.intellij.images.ImagesIcons;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
@@ -46,6 +46,6 @@ public final class SvgFileType extends XmlLikeFileType implements UIBasedFileTyp
@Override
public Icon getIcon() {
return ImagesIcons.ImagesFileType;
return AllIcons.FileTypes.Image;
}
}

View File

@@ -181,6 +181,7 @@
"fileTypes/custom.svg",
"fileTypes/text.svg"
],
"image.svg": "fileTypes/image.svg",
"unknown.svg": "fileTypes/unknown.svg",
"velocity.svg": "icons/velocity.svg",
"vueJs.svg": "icons/vue.svg",

View File

@@ -1,4 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2.5" y="2.5" width="11" height="11" rx="1.5" fill="#E7EFFD" stroke="#3574F0"/>
<path d="M2.5 9.33566L4.1822 7.66899C4.56052 7.29415 5.16625 7.28159 5.55979 7.64043L11.9861 13.5" stroke="#3574F0"/>

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 486 B

View File

@@ -1,4 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2.5" y="2.5" width="11" height="11" rx="1.5" fill="#25324D" stroke="#548AF7"/>
<path d="M2.5 9.33566L4.1822 7.66899C4.56052 7.29415 5.16625 7.28159 5.55979 7.64043L11.9861 13.5" stroke="#548AF7"/>

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 486 B

View File

Before

Width:  |  Height:  |  Size: 910 B

After

Width:  |  Height:  |  Size: 910 B

View File

@@ -399,6 +399,7 @@ public class AllIcons {
/** 16x16 */ public static final @NotNull Icon Htaccess = load("fileTypes/htaccess.svg", -2088610418, 0);
/** 16x16 */ public static final @NotNull Icon Html = load("fileTypes/html.svg", -1577865559, 0);
/** 16x16 */ public static final @NotNull Icon Idl = load("fileTypes/idl.svg", -219435872, 0);
/** 16x16 */ public static final @NotNull Icon Image = load("fileTypes/image.svg", -1773595662, 0);
/** 16x16 */ public static final @NotNull Icon Java = load("fileTypes/java.svg", 1910963991, 0);
/** 16x16 */ public static final @NotNull Icon JavaClass = load("fileTypes/javaClass.svg", 1466981955, 0);
/** 16x16 */ public static final @NotNull Icon JavaOutsideSource = load("fileTypes/javaOutsideSource.svg", -223692720, 0);

View File

@@ -173,6 +173,7 @@ public final class ExpUiIcons {
/** 16x16 */ public static final @NotNull Icon IdeaModule = load("expui/fileTypes/ideaModule.svg", 1417127557, 2);
/** 16x16 */ public static final @NotNull Icon Idl = load("expui/fileTypes/idl.svg", -1553952385, 2);
/** 16x16 */ public static final @NotNull Icon Ignored = load("expui/fileTypes/ignored.svg", -676991736, 2);
/** 16x16 */ public static final @NotNull Icon Image = load("expui/fileTypes/image.svg", -1705666596, 2);
/** 16x16 */ public static final @NotNull Icon Java = load("expui/fileTypes/java.svg", 1155678562, 2);
/** 16x16 */ public static final @NotNull Icon JavaScript = load("expui/fileTypes/javaScript.svg", 390154029, 2);
/** 16x16 */ public static final @NotNull Icon Jest = load("expui/fileTypes/jest.svg", -2044269766, 0);