From 845d88c93f14b48098c26fbababdd4a24ef00bab Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 16 Feb 2023 21:32:47 +0100 Subject: [PATCH] Make widget example look slightly less horrible --- examples/hello_world_widgets.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello_world_widgets.rs b/examples/hello_world_widgets.rs index c495f81..a0dc4d1 100644 --- a/examples/hello_world_widgets.rs +++ b/examples/hello_world_widgets.rs @@ -6,7 +6,7 @@ use toss::widgets::{BorderLook, Text}; use toss::{Style, Styled, Terminal, Widget, WidgetExt}; fn widget() -> impl Widget { - let styled = Styled::new("Hello world!", Style::new().green()) + let styled = Styled::new("Hello world!", Style::new().dark_green()) .then_plain("\n") .then("Press any key to exit", Style::new().on_dark_blue()); Text::new(styled) @@ -16,7 +16,7 @@ fn widget() -> impl Widget { .look(BorderLook::LINE_DOUBLE) .style(Style::new().dark_red()) .background() - .style(Style::new().on_dark_yellow().opaque()) + .style(Style::new().on_yellow().opaque()) .float() .all(0.5) }