John Hake a29e9b4e51 Themes documentation IJSDK-491 (#143)
* Initial theme

* JSON theme construction and integration with sdk project. Added theme documentation.

* Added images and review feedback

* Added internal mode and internal actions documentation

* More feedback

* Removed stub internal menu entries.

* Reduced use of images, clarified IntelliJ Platform, IDE.

* OlyaB feedback and compress images

* Moved json file to resources folder

* 19.1 -> 2019.1

* Strong note about availability of Custom UI Themes

* Removed reference to UiDefaultsHardcodedKeys.java

* Added IJSDK-567 content + cautioning UI Control keys may be deprecated.

* Better SVG icons, clarify macOS scroll bar name attributes.

* Generalize IntelliJ references, soften description of High Contrast scheme file as reference.

* Updated custom color editor scheme descriptions.

* Corrected position of editor scheme declaration.
2019-03-14 10:43:03 +01:00

36 lines
1.7 KiB
Markdown

---
title: Internal Actions - LaF Defaults
---
The _LaF Defaults_ window provides a key-value pair lookup for UI Controls.
It also allows interactive prototyping of UI Control color changes.
If the menu item **Tools \| Internal Actions** is not available in IntelliJ IDEA, then the first step is to [enable internal mode](enabling_internal.md)
## Opening LaF Defaults
The _LaF Defaults_ window is opened by selecting the menu item **Tools \| Internal Actions \| UI \| LaF Defaults**.
The _LaF Defaults_ window has two columns representing key-value pairs for UI Controls:
* The _Name_ column contains the UI Control `key` for each IntelliJ Platform UI element available at runtime.
* The _Value_ column contains the UI Control color `value` for each IntelliJ Platform UI element.
## Using the the LaF Panel
### Finding UI Controls
The _LaF Defaults_ window is used interactively by entering a UI element type - e.g. `Panel` - in the _Filter_ text box at the top.
_LaF Defaults_ shows the list of UI Control names matching the filter.
Clicking on one of the names narrows the information to show only the key-value pair for that UI element:
![LaF Lookup](img/internal_lafd_win.png)
### Prototyping the Color of UI Controls
The color of UI Controls can be changed (in real time) by clicking in the _Value_ column next to a _Name_ (`key`) of interest.
The _Choose Color_ window is displayed.
Color changes can be specified as RGB, hexadecimal, or using the color picker.
Pressing the _Choose_ button changes the UI Control color immediately.
UI Control colors can be reset using the _Choose Color_ window, or by resetting the [UI Theme](https://www.jetbrains.com/help/idea/settings-appearance.html).