A RetroSearch Logo

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

Search Query:

Showing content from https://plugins.jetbrains.com/docs/intellij/toolbar.html below:

Toolbar | IntelliJ Platform Plugin SDK

A toolbar provides quick access to frequently used actions and settings. It appears in dialogs, popups, tool windows, lists, trees, and tables.

The following controls can appear on a toolbar:

Frequently used items

Add actions and settings that are frequently used:

Exception: some actions can be used most frequently because they are widely known, like the Copy and Paste actions. Place such actions on the toolbar only if you want to promote them. Otherwise, place them only in a context menu or the main menu.

New items

When adding a new action or setting for a UI area that already has a toolbar: if the new item is expected to be used frequently, add it to increase its discoverability.

How to use Location

Toolbars can be horizontal or vertical. Which type to use, depends on what control the toolbar is used for.

Lists, trees, tables

Use horizontal toolbars for lists, trees, and tables that appear in dialogs and popups. Place the toolbar at the top of the control.

Vertical tool windows

Use horizontal toolbars in tool windows that are vertical by default.

Horizontal tool windows

Use vertical toolbars for tool windows that are horizontal by default. Place the toolbar on the left in a tool window.

If a horizontal tool window has several sections, place a toolbar on the right in sections after the first one if these conditions are true:

This way the toolbar would not break the connection between the master and the detail sections.

A horizontal toolbar can be used in a horizontal tool window in the two cases:

Items alignment

On a vertical toolbar, always top-align items.

On a horizontal toolbar:

Items grouping

Group related toolbar items and separate groups with lines.

If there are several unrelated icons, do not add separators after each icon. Separators could be entirely omitted if there are 5 and fewer icons on a toolbar.

Label

Label a group of icons if it helps to make the icons clearer and if it’s needed to promote the icons. The icons group becomes more visible with the label.

Items order

Arrange separate items or groups in the following order by default.

If usage statistics are available, and popular items appear not at the top or left of a toolbar, consider arranging by the frequency of use.

Toolbar overflow

A toolbar's width is usually limited by the element it belongs to. If there is not enough space for items on the toolbar, they are hidden under a chevron. Hovering the chevron shows the hidden items.

It is recommended to keep the number of toolbar items to what would be visible by default. Otherwise, the items will be hidden and it will be hard to discover them.

Avoid two toolbars

Do not counter a toolbar overflow by adding more toolbars. If there are too many items on a toolbar:

Toolbar border

For scrollable content in tool windows, do not show a toolbar border if the content is at the top scroll position. Show the border once the content is scrolled under the toolbar.

In places other than tool windows, it is fine to always show the border.

Customization

Provide the ability to customize toolbars in the main window. To do this, add the toolbar to the list on the page.

10 March 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