mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 06:47:40 +07:00
[devkit] Dedicated icon for Bundle.properties files
GitOrigin-RevId: 0ab43ad83f33dc9a3bf38a886cca10a9e17d59ba
This commit is contained in:
committed by
intellij-monorepo-bot
parent
418709ec2e
commit
a0c7e5f29d
@@ -26,6 +26,7 @@ public final class DevKitIcons {
|
||||
/** 12x12 */ public static final @NotNull Icon Properties = load("icons/gutter/properties.svg", "icons/expui/gutter/properties@14x14.svg", -818710709, 2);
|
||||
}
|
||||
|
||||
/** 16x16 */ public static final @NotNull Icon LocalizationFile = load("icons/localizationFile.svg", "icons/expui/localizationFile.svg", -1571747209, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon PluginV2 = load("icons/expui/pluginV2.svg", 1719825147, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon RemoteMapping = load("icons/remoteMapping.svg", "icons/expui/remoteMapping.svg", 1371307852, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon Sdk_closed = load("icons/sdk_closed.svg", "icons/expui/sdkClosed.svg", -1355048140, 2);
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
},
|
||||
"addSDK.svg": "icons/add_sdk.svg",
|
||||
"sdkClosed.svg": "icons/sdk_closed.svg",
|
||||
"remoteMapping.svg": "icons/remoteMapping.svg"
|
||||
"remoteMapping.svg": "icons/remoteMapping.svg",
|
||||
"localizationFile.svg": "icons/localizationFile.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m1.08 3.17 8.75 0.0678" stroke="#6c707e"/>
|
||||
<path d="m5.25 1.49v1.69" stroke="#6c707e" stroke-linecap="round"/>
|
||||
<g fill="none" stroke="#6c707e" stroke-linecap="round">
|
||||
<path d="m1.71 10.7c3-1.5 5.32-3.66 5.99-7.43"/>
|
||||
<path d="m2.84 5.05c-0.00403-0.00413 1.17 3.27 5.22 5.41 0.29 0.153-0.0839-0.0438-0.0231-0.0237"/>
|
||||
<path d="m7.16 13.5 3.3-8.11 3.35 8.16" stroke-linejoin="round" stroke="#3574F0"/>
|
||||
<path d="m8.21 11.3 4.47 0.0244" stroke-linejoin="round" stroke="#3574F0"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 752 B |
@@ -0,0 +1,11 @@
|
||||
<!-- Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m1.08 3.17 8.75 0.0678" stroke="#CED0D6"/>
|
||||
<path d="m5.25 1.49v1.69" stroke="#CED0D6" stroke-linecap="round"/>
|
||||
<g fill="none" stroke="#CED0D6" stroke-linecap="round">
|
||||
<path d="m1.71 10.7c3-1.5 5.32-3.66 5.99-7.43"/>
|
||||
<path d="m2.84 5.05c-0.00403-0.00413 1.17 3.27 5.22 5.41 0.29 0.153-0.0839-0.0438-0.0231-0.0237"/>
|
||||
<path d="m7.16 13.5 3.3-8.11 3.35 8.16" stroke-linejoin="round" stroke="#548AF7"/>
|
||||
<path d="m8.21 11.3 4.47 0.0244" stroke-linejoin="round" stroke="#548AF7"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 764 B |
@@ -0,0 +1,4 @@
|
||||
<!-- Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.39756 11.093C6.553 10.58 5.09123 9.34115 5.06009 9.3678C4.28492 9.9837 3.46716 10.544 2.61295 11.0446C2.10273 11.3389 1.58328 11.4124 1.26322 10.9768C1.20602 10.8961 1.16568 10.8047 1.14462 10.7081C1.12357 10.6114 1.12222 10.5115 1.14067 10.4143C1.15912 10.3172 1.19699 10.2247 1.252 10.1425C1.30701 10.0603 1.37804 9.99003 1.46084 9.93591C1.46715 9.93301 3.27465 8.75421 3.87742 8.2332C3.17204 7.46663 2.61124 6.57872 2.22214 5.61239C2.14727 5.42519 2.14594 5.2166 2.21842 5.02847C2.2909 4.84033 2.43183 4.68655 2.61295 4.59797C3.00375 4.43335 3.39062 4.50408 3.71505 5.05752C4.04119 5.84264 4.49575 6.56799 5.06008 7.20384C5.82931 6.26407 6.37583 5.16235 6.65864 3.98129L1 3.96536V2.47759H4.56765V1.74065C4.56635 1.64386 4.58428 1.54778 4.62041 1.45798C4.65655 1.36818 4.71016 1.28645 4.77815 1.21754C4.84613 1.14863 4.92712 1.09392 5.01643 1.05658C5.10573 1.01923 5.20156 1 5.29836 1C5.39516 1 5.49099 1.01923 5.5803 1.05658C5.6696 1.09392 5.75059 1.14863 5.81858 1.21754C5.88656 1.28645 5.94017 1.36818 5.97631 1.45798C6.01244 1.54778 6.03038 1.64386 6.02907 1.74065V2.47759H9.86205V3.96536H8.31526C7.93518 5.49782 7.27117 6.94544 6.35763 8.23321C6.88848 8.69369 7.45949 9.10571 8.06383 9.46435L9.77574 5.26376C9.83793 5.09897 9.94913 4.95721 10.0944 4.85757C10.2396 4.75793 10.4119 4.7052 10.588 4.70648C10.7641 4.70777 10.9356 4.76301 11.0794 4.86476C11.2231 4.96651 11.3323 5.10988 11.392 5.27555L13.6238 10.7534L15 14.0042H13.166L12.3634 12.1217H8.77472L8.1164 14.0042H6.18942L6.40219 13.4914L7.39756 11.093ZM10.595 7.2624L9.35305 10.6386H11.837L10.595 7.2624Z" fill="#6e6e6e"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,4 @@
|
||||
<!-- Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.39756 11.093C6.553 10.58 5.09123 9.34115 5.06009 9.3678C4.28492 9.9837 3.46716 10.544 2.61295 11.0446C2.10273 11.3389 1.58328 11.4124 1.26322 10.9768C1.20602 10.8961 1.16568 10.8047 1.14462 10.7081C1.12357 10.6114 1.12222 10.5115 1.14067 10.4143C1.15912 10.3172 1.19699 10.2247 1.252 10.1425C1.30701 10.0603 1.37804 9.99003 1.46084 9.93591C1.46715 9.93301 3.27465 8.75421 3.87742 8.2332C3.17204 7.46663 2.61124 6.57872 2.22214 5.61239C2.14727 5.42519 2.14594 5.2166 2.21842 5.02847C2.2909 4.84033 2.43183 4.68655 2.61295 4.59797C3.00375 4.43335 3.39062 4.50408 3.71505 5.05752C4.04119 5.84264 4.49575 6.56799 5.06008 7.20384C5.82931 6.26407 6.37583 5.16235 6.65864 3.98129L1 3.96536V2.47759H4.56765V1.74065C4.56635 1.64386 4.58428 1.54778 4.62041 1.45798C4.65655 1.36818 4.71016 1.28645 4.77815 1.21754C4.84613 1.14863 4.92712 1.09392 5.01643 1.05658C5.10573 1.01923 5.20156 1 5.29836 1C5.39516 1 5.49099 1.01923 5.5803 1.05658C5.6696 1.09392 5.75059 1.14863 5.81858 1.21754C5.88656 1.28645 5.94017 1.36818 5.97631 1.45798C6.01244 1.54778 6.03038 1.64386 6.02907 1.74065V2.47759H9.86205V3.96536H8.31526C7.93518 5.49782 7.27117 6.94544 6.35763 8.23321C6.88848 8.69369 7.45949 9.10571 8.06383 9.46435L9.77574 5.26376C9.83793 5.09897 9.94913 4.95721 10.0944 4.85757C10.2396 4.75793 10.4119 4.7052 10.588 4.70648C10.7641 4.70777 10.9356 4.76301 11.0794 4.86476C11.2231 4.96651 11.3323 5.10988 11.392 5.27555L13.6238 10.7534L15 14.0042H13.166L12.3634 12.1217H8.77472L8.1164 14.0042H6.18942L6.40219 13.4914L7.39756 11.093ZM10.595 7.2624L9.35305 10.6386H11.837L10.595 7.2624Z" fill="#afb1b3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -11,6 +11,8 @@
|
||||
</extensions>
|
||||
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<fileIconProvider implementation="org.jetbrains.idea.devkit.i18n.DevKitPropertiesIconProvider"/>
|
||||
|
||||
<localInspection language="XML" applyToDialects="false"
|
||||
projectType="INTELLIJ_PLUGIN"
|
||||
groupBundle="messages.DevKitBundle" groupPathKey="inspections.group.path" groupKey="inspections.group.descriptor"
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.idea.devkit.i18n
|
||||
|
||||
import com.intellij.ide.FileIconProvider
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import org.jetbrains.idea.devkit.DevKitIcons
|
||||
import javax.swing.Icon
|
||||
|
||||
internal class DevKitPropertiesIconProvider : FileIconProvider {
|
||||
private val pattern: Regex = Regex("(.*)Bundle(_.+)?\\.properties")
|
||||
|
||||
override fun getIcon(file: VirtualFile, flags: Int, project: Project?): Icon? {
|
||||
if (file.parent?.name == "messages"
|
||||
&& file.name.matches(pattern)) {
|
||||
return DevKitIcons.LocalizationFile
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user