# colour_totheme

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L187
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-colour_totheme/

```c
enum client_theme colour_totheme(int c)
```

## Parameters

- `c` (`int`)

## Called by

- [`colour_totheme`](/en/tmux/3.7c/reference/c-function-colour_totheme/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L206)
- [`window_pane_get_theme`](/en/tmux/3.7c/reference/c-function-window_pane_get_theme/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L2025)

## Calls

- [`colour_totheme`](/en/tmux/3.7c/reference/c-function-colour_totheme/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/colour.c#L206)

## Other function references

- [`colour_256toRGB`](/en/tmux/3.7c/reference/c-function-colour_256torgb/) (function)

## Referenced declarations

- [`client_theme`](/en/tmux/3.7c/reference/c-enum-client_theme/) (enum)
- [`COLOUR_FLAG_256`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`COLOUR_FLAG_RGB`](/en/tmux/3.7c/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
- [`THEME_DARK`](/en/tmux/3.7c/reference/c-enum-client_theme-theme_dark/) (constant)
- [`THEME_LIGHT`](/en/tmux/3.7c/reference/c-enum-client_theme-theme_light/) (constant)
- [`THEME_UNKNOWN`](/en/tmux/3.7c/reference/c-enum-client_theme-theme_unknown/) (constant)
