cli: adjust default theme to address #1905 (#5552)

This commit is contained in:
Alex Hancock
2025-11-03 16:46:22 -05:00
committed by GitHub
parent 9466d92f04
commit da45ca9282
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -495,6 +495,10 @@ impl CliSession {
let current = output::get_theme();
let new_theme = match current {
output::Theme::Ansi => {
println!("Switching to Light theme");
output::Theme::Light
}
output::Theme::Light => {
println!("Switching to Dark theme");
output::Theme::Dark
@@ -503,10 +507,6 @@ impl CliSession {
println!("Switching to Ansi theme");
output::Theme::Ansi
}
output::Theme::Ansi => {
println!("Switching to Light theme");
output::Theme::Light
}
};
output::set_theme(new_theme);
continue;
+1 -1
View File
@@ -60,7 +60,7 @@ thread_local! {
.unwrap_or_else(||
Config::global().get_param::<String>("GOOSE_CLI_THEME").ok()
.map(|val| Theme::from_config_str(&val))
.unwrap_or(Theme::Dark)
.unwrap_or(Theme::Ansi)
)
);
}