# Main Window

When you start the Theme Builder application, it shows the main window displayed below. Initially it shows the [default ](https://docs.wisej.com/theme-builder/user-interface/preview)preview pane containing a sample of Wisej controls in two floating windows in a **Wisej.Web.Desktop** container.

The tree on the left side shows all the elements in the current theme and the property grid on the left-bottom side displays the properties or items of the selected tree node.

You can change any aspect of the theme through this window and see immediately what effect your changes have on any Wisej control or on your application while it's running.

![Main Window](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-7016fd3ed559b6e251ae8a0d64f97ecfb8c7a2dc%2Fimage%20\(54\)%20\(1\).png?alt=media)

| Tool                                                                                                                                                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![create New Theme.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-0ad0f398622d2d20383a5e72a1175836c60a1f39%2FNewStyleSheet.png?alt=media)                  | Creates a new theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                                | [Read more.](https://docs.wisej.com/theme-builder/getting-started/create-new-theme)                                                                                                                                                                                                                                                                                                                                                                                        |
| ![load Theme.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-48a4925336fce1d57c28997bf3827d01812a6ee6%2FOpenFolder.png?alt=media)                           | Loads an existing theme.                                                                                                                                                                                                                                                                                                                                                                                                                                                            | [Read more](https://docs.wisej.com/theme-builder/getting-started/edit-a-theme)                                                                                                                                                                                                                                                                                                                                                                                             |
| ![save Theme.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-33d3bb0cda22135b570291bd840abbbb060d6ff2%2FSave%20\(1\).png?alt=media)                         | Saves the theme being edited.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![save Theme As.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-b794fd48d56159f295c9afc098e8e57cb02b65c3%2FSaveAs.png?alt=media)                            | Saves the theme being edited to a different file.                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-aaef050fc2a0310860e6cb67f705b6b855030dc9%2Fimage%20\(49\)%20\(1\).png?alt=media)                               | Dropdown list with the preloaded themes. You can switch the theme being edited using this list.                                                                                                                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![reload.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-9d9547949615cdb40262bf11201c877dc721886a%2FRedo.png?alt=media)                                     | Reloads the current theme. It may be useful if the preview window gets messed up after a while.                                                                                                                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-5a790feb8579407cc861c098f2070859ac78723c%2Fimage%20\(56\)%20\(1\).png?alt=media)                               | Enables or disables the live-update mode. When live update is ON, the preview window shows any change to the theme immediately. Turn it OFF to apply several changes in a sequence and save the time it takes to refresh the preview.                                                                                                                                                                                                                                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-161b85375cdb855616f54438c16cb39811c9aabd%2Fimage%20\(40\).png?alt=media)                                       | Enables or disables right-to-left alignment and layout. When Right To Left is ON, the preview scripts create the widgets setting the rtl and rtlLayout property to true, which adds the "RightToLeft" state to the widgets that support RTL mode.                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![add.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-2324a39b03f731a2763d8c41e2e96f5a485686c0%2FAdd.png?alt=media)                                         | <p>Adds a new element or a new value to the theme.</p><p>A new element can be a Color, an Image, a Font, an Appearance, a State or a Component.</p><p>A new value can be a Style or a Property. The type of element or value that is added depends on the selected node in the components.</p>                                                                                                                                                                                      | <p><a href="../theme-elements/colors">Colors</a></p><p><a href="images">Images</a></p><p><a href="../theme-elements/fonts">Fonts</a></p><p><a href="../theme-elements/appearances">Appearances</a></p><p><a href="../../theme-elements/appearances#components">Components</a></p><p><a href="../theme-elements/states">States</a></p><p><a href="https://wisej.com/docs/2.2/html/EditTheme.htm">Styles</a></p><p><a href="../theme-elements/properties">Properties</a></p> |
| ![delete.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-56df747c17b3987dea29cf132bc4f0c0c63b69d1%2FRemove%20\(1\).png?alt=media)                           | Deletes the selected element.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![rename.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-cb8afa238ebb009865911eb05715b73af68b617c%2FRename.png?alt=media)                                   | Renames the selected element.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![move Left.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-05679fa8a1bfaa8de0a551d9f9b90a3aa068e4f3%2FMoveLeft.png?alt=media)                              | Demotes the selected components. This button is enabled only when the selected element is a child component. Since components are hierarchical, this action lets you change the parent of a component.                                                                                                                                                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![move Right.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-7b2af4fbcf972be16be59956cacd1fb2dd1c8e01%2FMoveRight.png?alt=media)                            | Promotes the selected components. This button is enabled only when the selected element is a child component. Since components are hierarchical, this action lets you change the parent of a component.                                                                                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![move Down.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-943b10cf6e6256da202e37c46c6bcf573bc610f4%2FMoveDown.png?alt=media)                              | <p>Moves the selected element down. This button is enabled only when the selected element is a state a component or an appearance.</p><p>Moving a state up or down changes the order in which the styles and properties associated with the state are applied to the widget.</p><p>The <strong>Default</strong> state is always the first state in the list.</p>                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![move Up.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-9177cd9b3bc6895c94dc7150fdfb8747ddaa4104%2FMoveUp.png?alt=media)                                  | <p>Moves the selected element up. This button is enabled only when the selected element is a state a component or an appearance.</p><p>Moving a state up or down changes the order in which the styles and properties associated with the state are applied to the widget.</p><p>The <strong>Default</strong> state is always the first state in the list.</p>                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ![clicked Appearance.Image](https://4196911125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrHxzbanglDTTaYfB34Z%2Fuploads%2Fgit-blob-172c47630abc42ed6139c4ee0032c19ce75e6692%2FAppearanceEditor.png?alt=media)Last Clicked | <p>Shows the full appearance path of the last clicked widget in the preview window. The appearance key may not be present in the theme definition tree for several reasons: a) it could be a custom key defined in your application or an extension; b) it's a child component that is not themed (doesn't need to be); c) it's a new widget that wasn't themed.</p><p>The <strong>Last Clicked</strong> information allows you to add the specific appearance key when needed.</p> |                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/theme-builder/user-interface/main-window.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
