diff --git a/topics/reference_guide/themes_metadata.md b/topics/reference_guide/themes_metadata.md index 4cfc0efaa..1168c324d 100644 --- a/topics/reference_guide/themes_metadata.md +++ b/topics/reference_guide/themes_metadata.md @@ -1,7 +1,7 @@ - - # Exposing Theme Metadata + + Exposing plugin's UI components' customization keys allowing theme developers to change your components look. All available UI Customization Keys that can be used in [Custom Themes](themes_customize.md) must be defined in a dedicated *.themeMetadata.json file which is registered via `com.intellij.themeMetadataProvider` extension point. @@ -57,12 +57,14 @@ The following minimal sample demonstrates all details required when exposing UI > Do not remove existing keys, but deprecate them instead to help Theme authors upgrade their existing themes. > -Color keys can be used via `JBColor.namedColor()` providing defaults for Light and Dark theme: +Color keys can be used via [`JBColor.namedColor()`](%gh-ic%/platform/util/ui/src/com/intellij/ui/JBColor.java) providing defaults for Light and Dark theme: ```java -private static final Color SECTION_HEADER_FOREGROUND = JBColor.namedColor( - "Plugins.SectionHeader.foreground", - new JBColor(0x787878, 0x999999)); +private static final JBColor SECTION_HEADER_FOREGROUND = + JBColor.namedColor( + "Plugins.SectionHeader.foreground", + new JBColor(0x787878,0x999999) + ); ``` Other keys can be obtained via `javax.swing.UIManager#getXXX()` methods.