mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
more Platform UI links
This commit is contained in:
parent
487f19a7e9
commit
af426a6093
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
**Product Help:** [Menus and toolbars](https://www.jetbrains.com/help/idea/customize-actions-menus-and-toolbars.html)
|
**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>
|
</microformat>
|
||||||
|
|
||||||
The actions system allows plugins to add their items to IntelliJ Platform-based IDE menus and toolbars.
|
The actions system allows plugins to add their items to IntelliJ Platform-based IDE menus and toolbars.
|
||||||
|
@ -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. -->
|
<!-- 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>
|
<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.
|
A theme is customized by adding information to the theme description file that overrides the base (_Light_ or _Darcula_) theme.
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
**Product Help:** [Colors and fonts](https://www.jetbrains.com/help/idea/configuring-colors-and-fonts.html)
|
**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>
|
</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).
|
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).
|
||||||
|
@ -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. -->
|
<!-- 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
|
## 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.
|
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.
|
||||||
|
@ -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. -->
|
<!-- 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.
|
Kotlin UI DSL allows creating UI forms with input components bound to state objects.
|
||||||
The forms are built by using a declarative Kotlin syntax.
|
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.
|
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.
|
||||||
|
@ -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. -->
|
<!-- 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.
|
> This page describes API available in IntelliJ Platform releases **2021.3 and later** only.
|
||||||
>
|
>
|
||||||
> See [](kotlin_ui_dsl.md) for targeting earlier releases.
|
> See [](kotlin_ui_dsl.md) for targeting earlier releases.
|
||||||
|
@ -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. -->
|
<!-- 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.
|
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.
|
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
|
### 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.
|
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.
|
||||||
|
@ -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. -->
|
<!-- 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.
|
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.
|
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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user