How to preview an element (if possible) Follow
Answered
Hello friends,
I'm creating a custom theme, and I'm trying to find out what element is the `
BigSpinner`
:
Maybe there is a way to preview an element that I'm not aware of? I'm sure while developing my theme, I'll continue to face the problem of finding out what element I'm styling.
Any help is appreciated. Thank you!
Please sign in to leave a comment.
Hi Marcelo,
Unfortunately, there is no easy way of identifying a styled component.
If the key and its documentation aren't specific enough to understand what component it is about, there is no other option than checking the intellij-community sources and investigating it in the code.
BigSpinner.background is used in a loading spinner in the Settings Editor, which can be opened by opening the IDE settings.
What can be helpful to verify if a UI element is the one we are looking for is using UI Inspector:
https://plugins.jetbrains.com/docs/intellij/internal-ui-inspector.html
A workflow to find BigSpinner.background usage could look like this:
Also, you can use UI Inspector to view the components tree and check its background/foreground properties - they may contain a key that is used when defining a named color used for a given component, e.g.:
See also: