Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,26 @@ export default defineConfig({
{ label: 'Getting Started', slug: 'docs/getting-started' },
{
label: 'Configuration',
items: [{ label: 'Accents', slug: 'docs/configuration/accents' }],
items: [
{ label: 'Settings', slug: 'docs/configuration/settings' },
{ label: 'Color Schemes', slug: 'docs/configuration/color-schemes' },
{ label: 'License Info', slug: 'docs/configuration/license-info' },
{ label: 'Contrast Settings', slug: 'docs/configuration/contrast' },
{ label: 'Accents', slug: 'docs/configuration/accents' },
{ label: 'Accent Mode', slug: 'docs/configuration/accent-mode' },
{ label: 'Peek', slug: 'docs/configuration/peek' },
{ label: 'Regions', slug: 'docs/configuration/regions' },
{ label: 'Window Coloring', slug: 'docs/configuration/window-coloring' },
{ label: 'Tab Settings', slug: 'docs/configuration/tab-settings' },
{ label: 'Spacing Settings', slug: 'docs/configuration/spacing-settings' },
{ label: 'Trees Settings', slug: 'docs/configuration/trees-settings' },
{ label: 'UI Components Settings', slug: 'docs/configuration/ui-component-settings' },
{ label: 'Features Settings', slug: 'docs/configuration/features-settings' },
{
label: 'Project Title Bar Settings',
slug: 'docs/configuration/project-title-bar-settings',
},
],
},
{
label: 'Reference',
Expand All @@ -89,11 +108,25 @@ export default defineConfig({
starlightLinksValidator({
// Sections not converted yet (configuration, icons, reference, changelog, ...).
exclude: [
'/docs/configuration/**',
'/docs/configuration/file-header-settings/**',
'/docs/configuration/theme-color-overrides/**',
'/docs/configuration/custom-themes/**',
'/docs/configuration/language-additions/**',
'/docs/configuration/islands-settings/**',
'/docs/configuration/theme-ignores/**',
'/docs/configuration/theme-randomizer/**',
'/docs/configuration/other-tweaks-settings/**',
'/docs/configuration/quick-actions-panel/**',
'/docs/configuration/status-bar-widgets/**',
'/docs/configuration/excluded-files-colors/**',
'/docs/configuration/file-status-colors/**',
'/docs/configuration/scrollbars/**',
'/docs/configuration/adaptive-theme/**',
'/docs/configuration/recommended-plugins/**',
'/docs/icons/**',
'/docs/reference/**',
'/docs/changelog/**',
'/docs/whats-new/**',
'/docs/what-s-new/**',
'/docs/archives/**',
'/docs/development/**',
],
Expand Down
31 changes: 31 additions & 0 deletions e2e/configuration-pages.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { expect, test } from '@playwright/test';

const pages = [
'settings',
'color-schemes',
'license-info',
'contrast',
'accents',
'accent-mode',
'peek',
'regions',
'window-coloring',
'tab-settings',
'spacing-settings',
'trees-settings',
'ui-component-settings',
'features-settings',
'project-title-bar-settings',
];

for (const slug of pages) {
test(`configuration page ${slug} renders and is in the sidebar`, async ({ page }) => {
await page.goto(`/docs/configuration/${slug}/`);

await expect(page.getByRole('heading', { level: 1 })).toBeVisible();
await expect(
page.locator(`nav.sidebar a[href="/docs/configuration/${slug}/"]`),
).toHaveAttribute('aria-current', 'page');
await expect(page.locator('main')).not.toContainText(/\{%|\{\{/);
});
}
9 changes: 7 additions & 2 deletions scripts/convert-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,18 @@ function convertProse(text, file) {
);

result = result.replace(/\{\{\s*site\.baseurl\s*\}\}/g, '');
// The only multi-line expression: the total theme count (32).
result = result.replace(/\{\{\s*site\.data\.themes\.material\.size[\s\S]*?\}\}/g, '32');
result = result.replace(/<!--[\s\S]*?-->\n?/g, '');
result = result.replace(/\s+markdown="\d"/g, '');
result = result.replace(/<(br|hr|img|input)((?:\s[^<>]*?)?)\s*\/?>/gi, '<$1$2 />');

// Internal links get a trailing slash (trailingSlash: 'always').
const slash = (_, start, url, hash = '', end) =>
`${start}${/(\/|\.[a-z0-9]+)$/i.test(url) ? url : `${url}/`}${hash}${end}`;
const slash = (_, start, url, hash = '', end) => {
const clean = url.replace(/\.md$/, '');

return `${start}${/(\/|\.[a-z0-9]+)$/i.test(clean) ? clean : `${clean}/`}${hash}${end}`;
};

result = result.replace(/(\]\()(\/docs\/[^)#\s]*)(#[^)\s]*)?(\))/g, slash);
result = result.replace(/(href=")(\/docs\/[^"#]*)(#[^"]*)?(")/g, slash);
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/docs/acknowledgements.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ project settings.
[Project Label](https://plugins.jetbrains.com/plugin/8032-project-label)

A rather simple plugin that shows the current project in the status bar, which was the inspiration for the
[Status Bar Indicator](/docs/configuration/ui-components-settings/#theme-in-status-bar) feature.
[Status Bar Indicator](/docs/configuration/status-bar-widgets/) feature.

##### Browse word at caret

Expand Down
70 changes: 70 additions & 0 deletions src/content/docs/docs/configuration/accent-mode.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
title: Accent Mode
description: Emphasize UI components with the accent color
---

<div class="title">

Accent Mode allows you to emphasize specific UI components by applying the accent color more prominently throughout the IDE.

</div>

:::caution
This feature is only available for premium users. You can either buy a premium license for the plugin, or purchase the license for this feature only by going to this link: [Material Theme Extras](https://plugins.jetbrains.com/plugin/19250-material-theme-ui-extras).
:::

## Overview

While [Accent Colors](/docs/configuration/accents/) are used for subtle highlights, **Accent Mode** takes it further by colorizing entire components—such as buttons, selected tabs, and list items—with the accent color. This ensures that active elements stand out clearly against the background.

You can configure Accent Mode by navigating to `Settings → Appearance → Material Theme UI → Accent Mode`.

<Figure content="/screens/settingsv3/accentMode.png" caption="Accent Mode Settings" />

## Settings

### Enable

When enabled, Accent Mode applies the accent color to various UI components to make them stand out.

<Figure content="/screens/accentMode/accentModeEnabled.png" caption="Accent Mode" />

### Override second accent color

By default, the plugin uses a secondary accent color defined by the theme for certain elements like links and icons when Accent Mode is active. Enabling this option allows you to override this with a custom color of your choice.

### Second Accent Color

Choose a custom color to be used as the secondary accent color. The second accent color takes the place of the accent color in elements such as links, tab indicators, etc., to stand out on elements that are painted with the primary accent color.

<Figure content="/screens/accentMode/secondAccentColor.png" caption="Accent Mode Second Color" />

### Allow Color Scheme Modifications

When enabled, Accent Mode can override specific color scheme settings, such as the **Active Tab Color**, to ensure consistency across the UI. This allows the accent color to be applied to elements that are usually controlled by the editor's color scheme.

<Figure content="/screens/accentMode/overrideColorScheme.png" caption="Override Color Scheme" />

:::caution
Important Note: This setting forcefully overrides the color scheme, meaning that once it is activated, it will not be possible to revert back to the original color scheme. Moreover, even turning off Accent Mode will not restore the original color scheme, as the override is applied at a global level. Use this option with caution.
:::

## Fine-grained Control

Accent Mode can be applied globally or restricted to specific UI components. This allows you to customize exactly which elements should reflect the accent color.

Available components include:
- **Buttons**: Primary buttons in dialogs and toolbars.
- **Tabs**: The currently selected editor and tool window tabs.
- **Lists**: Selected items in lists and dropdowns.
- **Trees**: Selected items in the Project View and other tree structures.
- **Toolbars**: Selected or toggled elements within toolbars.
- **Notifications**: Colorized background or accents of IDE notifications.

---

## Preview

The settings page includes a **Preview** section where you can see how your Accent Mode configuration will look before applying it.

<Figure content="/screens/accentMode/accentModePreview.png" caption="Accent Mode Preview" />
182 changes: 182 additions & 0 deletions src/content/docs/docs/configuration/color-schemes.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
---
title: Color Schemes
description: Installation and Configuration
---

<div class="title">

The plugin provides a variety of color schemes optimized for Material Themes, delivering a flat, borderless, and modern interface.

</div>

## Installation

Change the active color scheme via:

- IDE settings: `Editor → Color Scheme`
- `Quick Switch` menu: Select `Color Scheme`.

<Figure content="/screens/schemes/quickSwitch.png" caption="Color Scheme Switcher" />

The list includes all your installed color schemes as well as those provided by JetBrains. The color schemes included with the plugin are:

<ThemeList groups={['material', 'material2', 'other', 'other2', 'other3']} prefix="Material " />
## Customization

While color schemes are optimized for immediate use, you can customize them in the `Color Scheme` editor.

Navigate to `Settings → Editor → Color Scheme` to modify colors. This will create a local copy of the scheme (e.g.,
`_@user_<schemeName>.icls`), which you can then modify and rename.

<Figure content="/screens/schemes/colorschemes.png" caption="Color Schemes" />

<Figure content="/screens/schemes/colorschemes2.png" caption="Color Scheme Editor" />

Note: If the [Automatically reset color schemes](/docs/configuration/other-tweaks-settings/#automatically-reset-color-schemes) option is
enabled, manual changes will not persist. We recommend using the `Duplicate` function to create a permanent copy.

----

## Color Scheme Overrides

Since version 12.0.0, you can override certain properties of **all** color schemes via these Settings, including the color schemes provided
by JetBrains or from third-party plugins. This allows you to align some colors with the theme, to use predefined values, to use your own
colors, etc.

At this moment, only a handful of properties are available, tailored from the most common use cases. More properties will be added in future
releases.

<Figure content="/screens/colorSchemes/colorSchemeOverrides.png" caption="Color Scheme Overrides" />

:::caution
**Note**: These properties forcefully override the color schemes, and therefore cannot be reverted once applied. If you want to preserve
any changes you could have made, create a backup of the color scheme before applying any overrides.
:::

### Diff Colors Opacity

**Diff Colors** are the colors displayed when opening a Diff or a Merge window. It showcases added lines, deleted lines, modified lines, and
sometimes conflicting lines. However, many theme editors provide a fully opaque, bright background, making it hard to understand what
changed.

This setting allows you to adjust the opacity of the background color of these highlights. Reducing the
opacity can help make the editor less cluttered and easier to read.

<Figure content="/screens/colorSchemes/fullyOpaqueDiff.png" caption="Fully Opaque Diff Colors" />

<Figure content="/screens/colorSchemes/transparentDiff.png" caption="Transparent Diff Colors" />

<Figure content="/screens/colorSchemes/fiftyPercentOpaqueDiff.png" caption="Fifty Percent Opaque Diff Colors" />

### VCS Gutter Colors

Another area of concern are the VCS Gutter Indicator Colors. Some theme editors completely missed this section or provided values that don't
have enough contrast with the background, making it hard to see the changes in the gutter.

This setting forcefully replaces these colors to use the same ones provided by the Material Themes.

<div class="masonry">
<Figure content="/screens/colorSchemes/originalVCS.png" caption="Original VCS Gutter Colors" />

<Figure content="/screens/colorSchemes/updatedVCS.png" caption="Updated VCS Gutter Colors" />

</div>

### Popups and Notifications

Another point of contention is the color of popups and notifications, which is sometimes forgotten by theme editors, leading to the theme
displaying the default Darcula/Light color.

Just like the above settings, this option forcefully replace these colors with values taken from the Theme itself, ensuring a consistent
look and feel across the IDE.

<Figure content="/screens/colorSchemes/originalPopupColor.png" caption="Original Popup Colors" />

<Figure content="/screens/colorSchemes/updatedPopupColor.png" caption="Updated Popup Colors" />

### Override Accent

This section allows you to automatically align certain color scheme properties with the current **Accent Color**. This makes sure that your
accent color changes are reflected to the color scheme as well.

The following properties can be toggled:

- **Override Scrollbar Thumb**: Align the scrollbar thumb color (and hover color) with the accent color.
- **Override Caret Color**: Align the editor caret color with the accent color.
- **Override Hyperlink**: Align the hyperlink color with the accent color.
- **Override Underline Tab**: Align the underline tab color (and inactive color) with the accent color.
- **Override Search Results**: Align the search results highlight color with the accent color.
- **Override Identifier Under Caret**: Align the identifier under caret color with the accent color.
- **Override Matched Brace**: Align the matched brace color with the accent color.

<Figure content="/screens/colorSchemes/overrideAccents.png" caption="Override Accents" />

### Automatically reset color scheme

This option automatically removes all customizations from your color scheme when switching themes. This ensures a clean slate, which is
especially useful given that many plugins, including this one, modify color schemes.

It also ensures you receive all the latest color scheme updates, as copied schemes cannot automatically detect changes to the original.

:::note
**Note**: This setting was previously found in the **Other** section of the plugin settings.
:::

### Use Editor Default Font

This option overrides the color scheme's font with the *Default Font* defined in `Settings > Editor > Font`. Since color schemes can define
their own fonts—leading to inconsistencies across different themes—enabling this ensures a uniform typography regardless of the active color
scheme.

:::note
**Note**: This setting was previously found in the **Other** section of the plugin settings.
:::

### Restoring Color Scheme Defaults

To revert a scheme to its original state, select `Restore Defaults` from the scheme's menu or use
the [Reset Color Scheme](/docs/configuration/quick-actions-panel/#material-theme-features) action in
the [Quick Actions Panel](/docs/configuration/quick-actions-panel/).

In addition, a new **Force Reset Color Scheme** action has been added to the __Color Scheme Overrides__ settings page as well.

:::caution
**Important**: Resetting or restoring defaults will permanently erase all changes made to that scheme. To preserve your modifications,
create a backup by using the `Duplicate` function before resetting.
:::

----------

## Supported languages

| | | |
|:-------------|:------------|:------------|
| Java | Properties | Erlang |
| Gradle | Yaml | Elm |
| Groovy | JSON | Matlab |
| Scala | Ruby | Haskell |
| Kotlin | Python | Elixir |
| CSS | PHP | Hibernate |
| Sass | Twig | SQL |
| LESS | Blade | Markdown |
| Stylus | C | Bash |
| HTML | C++ | HOCON |
| Haml | C# | Apache |
| XML | ASP | Gitignore |
| Jade/Pug | Objective C | Lua |
| JavaScript | Swift | Perl |
| TypeScript | Go | Slim |
| CoffeeScript | ERB | Velocity |
| Ini | EJS | Rust |
| Regex | Rdoc | HTTP Client |

----------

## Color Palette

The following palettes are relevant only for _Material Themes_ (hover to see the hex value):

<span style="float:none">Dark variant</span>
<span style="float:right">Light variant</span>

<PaletteColors />
Loading
Loading