A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://plugins.jetbrains.com/docs/intellij/themes-extras.html below:

Themes - Editor Schemes and Background Images

Themes can also provide custom color and font settings, as well as custom images for display in the IDE application window.

To see a full example theme project, see the Theme Basics in IntelliJ SDK Code Samples.

Adding a Custom Editor Scheme

Users of IntelliJ Platform-based IDEs, such as IntelliJ IDEA, can set preferences to configure the colors and fonts used in the Editor. These custom color and font settings are called Editor Color Schemes.

Creating a Custom Editor Scheme Using Settings

Custom editor color schemes can be specified and exported using the IDE dialog. Note that editor Colors and Fonts, and Colors for Version Control File Status are customized in different sections of .

Use the following procedure to customize an editor color scheme for a theme:

Incorporating the Editor Color Scheme in the Custom Theme

The next step is to add the color scheme to the theme plugin project:

The example below adds an editor scheme named "Lightning" to the Theme Basics custom theme:

{ "name": "Theme Basics", "dark": false, "author": "IntelliJ Platform SDK", "editorScheme": "/Lightning.xml", "ui": { } }

Editor Color Scheme XML Files

When an editor color scheme is exported as a file, the color options appear as name-value attributes of option elements. The name is the aspect of the editor to be changed, and the value is the new color in six-digit RGB or eight-digit RGBA hexadecimal notation. For example, the snippet below sets the color of the line numbers displayed in the editor:

<colors> <option name="LINE_NUMBERS_COLOR" value="999999"/> </colors>

For additional examples of name and value attributes, review the editor color scheme XML file for the High Contrast editor scheme.

Customizing Version Control File Status Colors

As described above, colors corresponding to the VCS status of files can be customized and exported via the Settings. No other procedure is necessary to customize these colors. In the exported color scheme file, the name is the VCS file status, and the value is the new color corresponding to that status. For example, customized VCS colors for a subset of file statuses will appear in the editor scheme file as:

<colors> <option name="FILESTATUS_ADDED" value="62cc47"/> <option name="FILESTATUS_COPIED" value="62cc47"/> <option name="FILESTATUS_DELETED" value="ed864a"/> </colors>

For additional examples of FILESTATUS color name attributes, see the editor color scheme XML file for the High Contrast editor scheme.

Customizing Editor Scroll Bar Colors

Editor scroll bar colors should be coordinated with and switch together with an editor color scheme. Please note that custom theme (*.theme.json) files also contain ScrollBar.* name attributes, but these are for scroll bars outside the context of the editor.

The Editor Scroll Bar colors are the only editor scheme settings that cannot be customized and exported through IDE preferences.

Customizing the editor scroll bar colors requires manually changing an editor color scheme XML file. At this time there isn't code completion functionality for changing custom color editor scheme XML files, so the name attributes are described below.

Editor Scroll Bar Attribute Name Format

The typical format of a scroll bar name attribute is ScrollBar.usage, where usage describes where the color is to be applied. In some cases usage itself can be compound such as ScrollBar.Mac.Transparent.thumbColor. In these compound cases, the last portion of the compound usage still describes where the color is to be applied.

Note that the following example snippet uses an eight-digit hexadecimal color value to give ScrollBar.Mac.thumbColor transparency:

<color> <option name="ScrollBar.Mac.trackColor" value="000000"/> <option name="ScrollBar.Mac.thumbColor" value="FFFFFFBE"/> </color>

Editor Scroll Bar Attribute Names

A list of scroll bar name attributes is in the High Contrast editor scheme file. These name attributes cannot be accessed from anywhere in the IDE UI at this time, so they must be manually added to an editor color scheme XML file.

The following list explains the usage format of the name attribute, i.e., where a custom scroll bar color is applied:

The name attribute patterns are enumerated below.

Platform Independent Name Attributes

The horizontal scroll bar background color is set by ScrollBar.background. This background color is visible only if the horizontal scroll bar's *.trackColor has transparency.

At this time, the vertical scrollbar background color cannot be customized.

Windows/Linux Name Attributes

The name attributes for Windows and Linux scroll bars have the pattern ScrollBar.Transparent.*, where the wildcard portion corresponds to the usage definitions above.

macOS Name Attributes

The name attribute pattern for the vertical scroll bar is ScrollBar.Mac.*.

The name attribute pattern for the horizontal scroll bar depends on the macOS preferences Show scroll bars setting:

The wildcard portion of these patterns corresponds to the usage definitions above.

Adding a Custom Background Image

The IDE supports setting an image as a background in the application window. Users can do this manually in Settings.

Themes support specifying a background image as a key-value pair in the "background": {} (for editor and tools) and "emptyFrameBackground": {} (for empty frame) sections of a Theme description file:

The following example adds an image of the Austrian countryside to the Theme Basics Theme description file:

{ "name": "Theme Basics", "dark": false, "author": "IntelliJ Platform SDK", "ui": { }, "background": { "image": "/austria.png", "transparency": 10, "fill": "scale", "anchor": "center" }, "emptyFrameBackground": { "image": "/austria.png", "transparency": 20, "fill": "scale", "anchor": "center" } }

29 April 2025


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4