# ThemeSelectorScreen

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen)

Modal dialog for theme selection with live preview.

Displays available themes in an `OptionList`. Navigating the option list
applies a live preview by swapping the app theme. Returns the selected
theme name on Enter, or `None` on Esc (restoring the original theme).

## Signature

```python
ThemeSelectorScreen(
    self,
    current_theme: str,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `current_theme` | `str` | Yes | The currently active theme name (to highlight). |

## Extends

- `ModalScreen[str | None]`

## Constructors

```python
__init__(
    self,
    current_theme: str,
) -> None
```

| Name | Type |
|------|------|
| `current_theme` | `str` |


## Properties

- `BINDINGS`
- `CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen/on_mount)
- [`on_option_list_option_highlighted()`](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen/on_option_list_option_highlighted)
- [`on_option_list_option_selected()`](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen/on_option_list_option_selected)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen/action_cancel)
- [`action_cursor_down()`](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen/action_cursor_down)
- [`action_cursor_up()`](https://reference.langchain.com/python/deepagents-cli/widgets/theme_selector/ThemeSelectorScreen/action_cursor_up)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1ae053f347679e58562d2b81eb6d6e6e9bbf0b07/libs/cli/deepagents_cli/widgets/theme_selector.py#L23)