more Platform UI links

This commit is contained in:
Yann Cébron 2022-09-29 13:26:54 +02:00
parent 487f19a7e9
commit af426a6093
8 changed files with 40 additions and 2 deletions

View File

@ -6,6 +6,8 @@
**Product Help:** [Menus and toolbars](https://www.jetbrains.com/help/idea/customize-actions-menus-and-toolbars.html)
**Platform UI Guidelines:** [Toolbar](https://jetbrains.design/intellij/controls/toolbar/)
</microformat>
The actions system allows plugins to add their items to IntelliJ Platform-based IDE menus and toolbars.

View File

@ -2,6 +2,12 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<microformat>
**Platform UI Guidelines:** [Icons](https://jetbrains.design/intellij/principles/icons/), [Platform theme colors](https://jetbrains.design/intellij/principles/platform_theme_colors/#UI-components)
</microformat>
<excerpt>Customizing UI controls and icons in a theme plugin.</excerpt>
A theme is customized by adding information to the theme description file that overrides the base (_Light_ or _Darcula_) theme.

View File

@ -6,6 +6,8 @@
**Product Help:** [Colors and fonts](https://www.jetbrains.com/help/idea/configuring-colors-and-fonts.html)
**Platform UI Guidelines:** [Inspections](https://jetbrains.design/intellij/text/inspections/)
</microformat>
The class used to specify how a particular range of text should be highlighted is called [`TextAttributesKey`](%gh-ic%/platform/core-api/src/com/intellij/openapi/editor/colors/TextAttributesKey.java).

View File

@ -2,6 +2,12 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
<microformat>
**Platform UI Guidelines:** [Layout](https://jetbrains.design/intellij/principles/layout), [Validation errors](https://jetbrains.design/intellij/principles/validation_errors/)
</microformat>
## DialogWrapper
The [`DialogWrapper`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java) is the base class which is supposed to be used for all modal dialogs (and some non-modal dialogs) shown in IntelliJ Platform.

View File

@ -2,6 +2,12 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
<microformat>
**Platform UI Guidelines:** [Layout](https://jetbrains.design/intellij/principles/layout)
</microformat>
Kotlin UI DSL allows creating UI forms with input components bound to state objects.
The forms are built by using a declarative Kotlin syntax.
It shares similarities with [Jetpack Compose](https://developer.android.com/jetpack/compose) for Android and is intended to build UI forms or part of forms for, e.g. dialogs and settings pages.

View File

@ -2,6 +2,12 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
<microformat>
**Platform UI Guidelines:** [Layout](https://jetbrains.design/intellij/principles/layout)
</microformat>
> This page describes API available in IntelliJ Platform releases **2021.3 and later** only.
>
> See [](kotlin_ui_dsl.md) for targeting earlier releases.

View File

@ -2,11 +2,15 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
<microformat>
**Platform UI Guidelines:** [Notifications](https://jetbrains.design/intellij/controls/notifications/), [Banner](https://jetbrains.design/intellij/controls/banner/), [Got It tooltip](https://jetbrains.design/intellij/controls/got_it_tooltip/), [Balloon](https://jetbrains.design/intellij/controls/balloon/)
</microformat>
One of the leading design principles is avoiding the use of modal message boxes for notifying the user about errors and other situations that may warrant the user's attention.
As a replacement, the IntelliJ Platform provides multiple non-modal notification UI options.
For an overview, refer to [Notifications](https://jetbrains.design/intellij/controls/notifications/) in IntelliJ Platform UI Guidelines.
### Dialogs
When working in dialog, instead of checking the validity of the input when the _OK_ button is pressed and notifying the user about invalid data with a modal dialog, the recommended approach is to use [`DialogWrapper.doValidate()`](%gh-ic%/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java), which was described previously.

View File

@ -2,6 +2,12 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
<microformat>
**Platform UI Guidelines:** [Overview](https://jetbrains.design/intellij/)
</microformat>
The IntelliJ Platform includes a large number of custom Swing components.
Using those components in your plugins will ensure that your plugin looks and works consistently with the UI of the rest of the IDE, and can often reduce the code size compared to using the default Swing components.