Skip to content

feat(tui): add support for named themes (#1779) - #1780

Draft
fujiapple852 wants to merge 1 commit into
masterfrom
feat-themes-v2
Draft

feat(tui): add support for named themes (#1779)#1780
fujiapple852 wants to merge 1 commit into
masterfrom
feat-themes-v2

Conversation

@fujiapple852

Copy link
Copy Markdown
Owner

Closes #1779

@fujiapple852
fujiapple852 marked this pull request as draft April 5, 2026 08:43
@fujiapple852
fujiapple852 force-pushed the feat-themes-v2 branch 5 times, most recently from 0fc2b57 to 324486e Compare April 5, 2026 09:15
@fujiapple852

Copy link
Copy Markdown
Owner Author

@PerchunPak this draft PR adds support for named themes.

I took the liberty of adding the 4x themes you defined as well as adding the basic trippy theme.

compare(parse_config(cmd), expected);
}

// TODO add --tui-theme tests

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

tui_max_addrs: Some(super::constants::DEFAULT_TUI_MAX_ADDRS),
tui_locale: None,
tui_timezone: None,
tui_theme: Some(String::from(super::constants::DEFAULT_TUI_THEME)),

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

}

impl Default for TuiTheme {
// TODO: expect here

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

.iter()
.map(|(name, source)| {
let theme: TuiTheme = toml::from_str(source).unwrap_or_else(|err| {
// TODO panic here

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

@PerchunPak PerchunPak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specify a named theme (--tui-theme)

2 participants