2019-09-09 17:10:24 -07:00

5.8 KiB
Raw Blame History

title
Plugin Logo Icon

Beginning in version 2019.1, the IntelliJ Platform supports representing a plugin with a logo. A Plugin Logo is an icon, intended to be a unique representation of a plugin's functionality, technology, or company.

Note: icons and images used within a plugin have different requirements. See Working with Icons and Images for more information.

  • bullet list {:toc}

Introduction

Plugin Logos are shown in the Plugins Repository, and in MarketPlace. They also appear in the Settings/Preferences Plugin Manager UI in JetBrains' IntelliJ Platform-based IDEs. Whether online or in the product UI, a Plugin Logo helps users to identify a plugin more quickly in a list, as shown below:

Example Product Plugin Preferences Dialog{:width="800px"}

Plugin Logo Icon Requirements

Plugin Logos are represented as icons, and to be displayed correctly within an IntelliJ Platform-based IDE the icon must:

  • Be the correct file format,
  • Follow the best practices design guidelines
  • Conform to file name conventions.

Plugin Logo Icon File Format

All Plugin Logo images must be SVG format. This vector image format is required because the Plugin Logo is displayed in more than one size.

Plugin Logo Size

The Plugin Logo icon should be provided in one size: 40px x 40px. However, the icons display in two sizes, and scale automatically in each context:

  • 40px by 40px in the plugins list in the Plugin Manager UI.
  • 80px by 80px in the plugin details screen in the Plugin Manager UI, on the plugin's page in the Plugins Repository, and on MarketPlace.

Verify that Plugin Logo icon designs are effective in both sizes and all display contexts.

Plugin Logo Shape and Visual Weight

The nominal Plugin Logo size is shown below. At least 2px transparent padding should remain around the perimeter. This leaves a nominal 36px x 36px area where the visible part of the Plugin Logo icon should fit, as shown below:

36px x 36px is the area where the visible part of the logo icon should fit{:width="225px"}

Make sure Plugin Logos have the same visual weight as the logos in the examples below. The more visual weight in Plugin Logo design, the less actual space it needs. See more examples of visual weight compensation in the IntelliJ Platform UI Guidelines for Icons.

For basic shapes use the following sizes. Note the different areas of transparent padding used for each shape:

Square 32px x 32px{:width="225px"} Circle 34px in Diameter{:width="225px"}
Square icon 32 x 32px Circular icon 34px in Diameter
Horizontal rectangle 36px x 26px{:width="225px"} Vertical rectangle 26px x 36px{:width="225px"}
Horizontal rectangular icon 36px x 26px Vertical rectangular icon 26px x 36px

Plugin Logo Colors

If the plugins technology already has a logo, use its colors. Check the license terms before using the logo. If there is no existing logo, or its use is prohibited, create a custom logo based on the Action Colors Palette in the IntelliJ Platform UI Guidelines for Icons.

YouTrack Plugin Logo Uses the YouTrack Product Logo {:width="225px"} Keymap Plugin Logo Uses Color From the Action Colors Palette{:width="225px"}
The YouTrack Plugin Logo Uses
the YouTrack Product Logo
The Keymap Plugin Logo Uses a Color
From the Action Colors Palette

Ensure a Plugin Logo is visible and provides a good user experience on both light and dark backgrounds. If one Plugin Logo design does not work on both light and dark backgrounds, then create separate light and dark versions of the Plugin Logo. The examples below illustrate how a good Plugin Logo design for a light background may work well (left) for a light background but not so well (middle) for a dark background. Consequently, a separate Plugin Logo (right) for dark backgrounds is needed.

Plugin Logo on Light UI Theme{:width="225px"} Light Plugin Logo on Dark UI Theme{:width="225px"} Plugin Logo for Dark UI Theme{:width="225px"}
The light Plugin Logo design
works well on light UI Theme
The light Plugin Logo design does
not work well on a dark UI Theme
A separate, dark Plugin Logo design
works well on dark UI Theme

Plugin Logo Icon File Naming Convention

To be used by the IntelliJ Platform, Plugin Logo icon files must be named according to the following conventions:

  • pluginIcon.svg as the default Plugin Logo, and specifically for use with light IDE UI Themes,
  • pluginIcon_dark.svg an optional, alternative Plugin Logo icon for use with dark IDE UI Themes. This alternate Plugin Logo icon can be provided when using the default icon is unsatisfactory for use with light IDE UI Themes.

Adding Plugin Logo Icon Files to a Plugin Project

The Plugin Logo icon files must be in the META-INF folder of the plugin distribution file, i.e. the *.jar or *.zip file you upload to the plugin repository and install into a JetBrains IDE.

To include Plugin Logo icons in your distribution file, place the Plugin Logo icon files into a plugin project's resources/META-INF folder. Note that this requirement is the same regardless of using DevKit or Gradle for developing a plugin. For example:

Plugin Icon Filess in META-INF folder