mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 12:31:26 +07:00
[python] PythonPsiApiIcons moved to com.jetbrains.python package, as whole community.python.impl must be there
GitOrigin-RevId: 0c38ddbdd5b0588ed4ec09c1d447248678974323
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f8a5625f99
commit
e4a56dc87f
@@ -0,0 +1,18 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.jetbrains.python.parser.icons;
|
||||
|
||||
import com.intellij.ui.IconManager;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* NOTE THIS FILE IS AUTO-GENERATED
|
||||
* DO NOT EDIT IT BY HAND, run "Generate icon classes" configuration instead
|
||||
*/
|
||||
public final class PythonParserIcons {
|
||||
private static @NotNull Icon load(@NotNull String path, int cacheKey, int flags) {
|
||||
return IconManager.getInstance().loadRasterizedIcon(path, PythonParserIcons.class.getClassLoader(), cacheKey, flags);
|
||||
}
|
||||
/** 16x16 */ public static final @NotNull Icon PythonFile = load("icons/com/jetbrains/python/parser/pythonFile.svg", -1892316725, 0);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<polygon fill="#9AA7B0" fill-opacity=".8" points="7 1 3 5 7 5"/>
|
||||
<path fill="#9AA7B0" fill-opacity=".8" d="M8,15 L8,14.2969971 C7.36669922,14.199707 6.88330078,13.8920898 6.54980469,13.3741455 C6.04956055,12.597229 5.93456815,11.4361142 6.19824,10.48829 C6.43894131,9.35763335 7.42625169,8.54140082 8.582,8.51758 L8.582,8.30371 C8.54238583,7.73543641 8.73742659,7.17576161 9.12164336,6.75518863 C9.50586012,6.33461565 10.0091436,6.01178592 10.5786743,6 C11.0159164,5.92635891 11.4950401,5.96724118 11.93844,5.96679 C12.256801,5.96513612 12.6106543,6.00191945 13,6.07714 L13,1 L8,1 L8,6 L3,6 L3,15 L8,15 Z"/>
|
||||
<path fill="#40A0CF" fill-opacity=".9" fill-rule="nonzero" d="M11.4913273,6.87848182 C11.140205,6.87885379 10.7897227,6.90844683 10.4435091,6.96695455 C9.5156,7.12909091 9.34714545,7.46846364 9.34714545,8.09432727 L9.34714545,8.92090909 L11.5398727,8.92090909 L11.5398727,9.19642727 L8.5242,9.19642727 C7.86120772,9.18181909 7.28351073,9.64553477 7.15436364,10.2959909 C6.94853771,11.0163063 6.94853771,11.7798664 7.15436364,12.5001818 C7.21449071,13.1059266 7.71153147,13.5748995 8.31974545,13.5997545 L9.07363636,13.5997545 L9.07363636,12.6088455 C9.09437381,11.8647707 9.69915617,11.2699502 10.4434727,11.2615727 L12.6336727,11.2615727 C12.9252637,11.2609951 13.2046621,11.1445126 13.4103098,10.9377889 C13.6159575,10.7310652 13.7309804,10.4510628 13.7300364,10.1594727 L13.7300364,8.09432727 C13.6891878,7.50110733 13.225523,7.02432847 12.6336727,6.96695455 C12.255995,6.90590528 11.8739012,6.87631276 11.4913273,6.87848182 Z M10.3054545,7.54328182 C10.4726651,7.5425433 10.6238453,7.642633 10.6884634,7.79685492 C10.7530816,7.95107684 10.7184039,8.12903997 10.600609,8.24771713 C10.4828141,8.36639429 10.3051147,8.40239892 10.1504149,8.33893338 C9.99571511,8.27546783 9.89450011,8.12503865 9.89399091,7.95782727 C9.89352675,7.72988991 10.0775201,7.5445185 10.3054545,7.54328182 Z"/>
|
||||
<path fill="#FFC900" fill-opacity=".9" fill-rule="nonzero" d="M14.0035364,9.19642727 L14.0035364,10.1594909 C13.9910624,10.9116696 13.3858254,11.5192282 12.6337,11.5345818 L10.4435,11.5345818 C9.83937796,11.5432182 9.35262001,12.0325229 9.34713636,12.6366818 L9.34713636,14.7018182 C9.41880712,15.2760701 9.86962988,15.7292517 10.4435,15.8039182 C11.1569057,16.0244958 11.9202943,16.0244958 12.6337,15.8039182 C13.2106869,15.7356093 13.6647667,15.2791537 13.7300636,14.7018182 L13.7300636,13.8752818 L11.5398818,13.8752818 L11.5398818,13.5997636 L14.8264636,13.5997636 C15.4637364,13.5997636 15.7012182,13.1601091 15.9228273,12.5001909 C16.1478282,11.7826865 16.1478282,11.0135045 15.9228273,10.296 C15.8879234,9.70500551 15.4173536,9.23305833 14.8264636,9.19642727 L14.0035364,9.19642727 Z M12.7717182,14.4263364 C12.9391579,14.4255968 13.0904985,14.5259586 13.1549699,14.6804903 C13.2194413,14.835022 13.1843021,15.013184 13.0659843,15.131664 C12.9476664,15.2501439 12.7695527,15.2855269 12.6149329,15.2212671 C12.4603131,15.1570073 12.3597442,15.0058042 12.3602545,14.8383636 C12.3601315,14.7291513 12.4034241,14.6243686 12.4805978,14.5470927 C12.5577715,14.4698167 12.6624967,14.4263853 12.7717091,14.4263636 L12.7717182,14.4263364 Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -13,7 +13,7 @@ import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.psi.PsiDocumentManager;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.util.text.CharSequenceReader;
|
||||
import icons.PythonPsiApiIcons;
|
||||
import com.jetbrains.python.parser.icons.PythonParserIcons;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -66,7 +66,7 @@ public class PythonFileType extends LanguageFileType {
|
||||
|
||||
@Override
|
||||
public Icon getIcon() {
|
||||
return PythonPsiApiIcons.PythonFile;
|
||||
return PythonParserIcons.PythonFile;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package icons;
|
||||
|
||||
import com.intellij.ui.IconManager;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* NOTE THIS FILE IS AUTO-GENERATED
|
||||
* DO NOT EDIT IT BY HAND, run "Generate icon classes" configuration instead
|
||||
*/
|
||||
public final class PythonPsiApiIcons {
|
||||
private static @NotNull Icon load(@NotNull String path, int cacheKey, int flags) {
|
||||
return IconManager.getInstance().loadRasterizedIcon(path, PythonPsiApiIcons.class.getClassLoader(), cacheKey, flags);
|
||||
}
|
||||
/** 16x16 */ public static final @NotNull Icon IPythonNotebook = load("icons/com/jetbrains/python/iPythonNotebook.svg", 610765917, 0);
|
||||
|
||||
public static final class Nodes {
|
||||
/** 16x16 */ public static final @NotNull Icon CyanDot = load("icons/com/jetbrains/python/nodes/cyan-dot.svg", -182142090, 0);
|
||||
/** 16x16 */ public static final @NotNull Icon Lock = load("icons/com/jetbrains/python/nodes/lock.svg", 1450341891, 0);
|
||||
/** 16x16 */ public static final @NotNull Icon RedInvTriangle = load("icons/com/jetbrains/python/nodes/red-inv-triangle.svg", -1698695951, 0);
|
||||
}
|
||||
|
||||
/** 16x16 */ public static final @NotNull Icon PropertyDeleter = load("icons/com/jetbrains/python/propertyDeleter.svg", 474832287, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon PropertyGetter = load("icons/com/jetbrains/python/propertyGetter.svg", 1495604199, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon PropertySetter = load("icons/com/jetbrains/python/propertySetter.svg", -1451064081, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon PythonFile = load("icons/com/jetbrains/python/pythonFile.svg", -1892316725, 0);
|
||||
}
|
||||
Reference in New Issue
Block a user