Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 61 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ itsuki = "0.2.1"
laurier = "0.3.0"
once_cell = "1.21.3"
open = "5.3.3"
ratatui = "0.30.0"
ratatui = { version = "0.30.0", features = ["serde"] }
ratatui-image = { version = "10.0.4", default-features = false, features = [
"crossterm",
"image-defaults",
Expand Down
184 changes: 184 additions & 0 deletions docs/src/configurations/config-file-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,27 @@ date_format = "%Y-%m-%d %H:%M:%S"
[ui.help]
max_help_width = 100

[ui.theme]
bg = "reset"
fg = "reset"
divider = "dark_gray"
link = "blue"
list_selected_bg = "#FFD166"
list_selected_fg = "black"
list_selected_inactive_bg = "dark_gray"
list_selected_inactive_fg = "black"
list_filter_match = "red"
detail_selected = "cyan"
dialog_selected = "cyan"
preview_line_number = "dark_gray"
help_key_fg = "yellow"
status_help = "dark_gray"
status_info = "blue"
status_success = "green"
status_warn = "yellow"
status_error = "red"
object_dir_bold = true

[preview]
highlight = false
highlight_theme = "base16-ocean.dark"
Expand Down Expand Up @@ -119,6 +140,169 @@ The maximum width of the keybindings display area in the help.
- type: `usize`
- default: `100`

### `ui.theme.bg`

The default background color used across the UI.

- type: `string`
- default: `reset`

### `ui.theme.fg`

The default foreground color used across the UI.

- type: `string`
- default: `reset`

### `ui.theme.divider`

The color of dividers and separators.

- type: `string`
- default: `dark_gray`

### `ui.theme.link`

The color used for links in the help view.

- type: `string`
- default: `blue`

### `ui.theme.list_selected_bg`

The background color of the selected row in bucket and object lists.

- type: `string`
- default: `cyan`

Theme colors are deserialized by Ratatui's `Color` serde support.
Supported examples include named colors such as `cyan`, `dark_gray`, `bright_white`,
hex colors such as `#FFD166`, and indexed colors such as `42`.

### `ui.theme.list_selected_fg`

The foreground color of the selected row in bucket and object lists.

- type: `string`
- default: `black`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.list_selected_inactive_bg`

The background color of the selected row when the list is inactive.

- type: `string`
- default: `dark_gray`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.list_selected_inactive_fg`

The foreground color of the selected row when the list is inactive.

- type: `string`
- default: `black`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.list_filter_match`

The color used to highlight matched filter text in lists.

- type: `string`
- default: `red`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.detail_selected`

The color used for the selected tab and selection accents in the object detail page.

- type: `string`
- default: `cyan`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.dialog_selected`

The color used to highlight the selected choice in dialogs.

- type: `string`
- default: `cyan`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.preview_line_number`

The color of line numbers in the text preview.

- type: `string`
- default: `dark_gray`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.help_key_fg`

The foreground color of key labels in the help view.

- type: `string`
- default: `yellow`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.status_help`

The color used for help/status hint messages.

- type: `string`
- default: `dark_gray`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.status_info`

The color used for informational status messages.

- type: `string`
- default: `blue`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.status_success`

The color used for success status messages.

- type: `string`
- default: `green`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.status_warn`

The color used for warning status messages.

- type: `string`
- default: `yellow`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.status_error`

The color used for error status messages.

- type: `string`
- default: `red`

Supports the same color formats as `ui.theme.list_selected_bg`.

### `ui.theme.object_dir_bold`

Whether directory names should be rendered in bold.

- type: `bool`
- default: `true`

### `preview.highlight`

Whether syntax highlighting is enabled in the object preview.
Expand Down
Loading