From 075f24dadd2ff924c05000bdd8fe42a8afc0fad4 Mon Sep 17 00:00:00 2001 From: MoAlyousef Date: Mon, 26 Jul 2021 06:15:20 +0300 Subject: [PATCH] bump --- Cargo.toml | 2 +- examples/fluent.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8857e94..f4d627a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fltk-theme" -version = "0.1.4" +version = "0.1.5" authors = ["MoAlyousef "] edition = "2018" description = "A theming crate for fltk-rs" diff --git a/examples/fluent.rs b/examples/fluent.rs index e6b4d6b..b102c80 100644 --- a/examples/fluent.rs +++ b/examples/fluent.rs @@ -19,7 +19,7 @@ fn main() { let mut toggle = button::ToggleButton::new(100, 220, 80, 30, "Toggle"); toggle.set_color(enums::Color::from_hex(0x0078D4)); toggle.set_label_color(enums::Color::White); - toggle.set_down_frame(widget_themes::OS_DEFAULT_DEPRESSED_DOWN_BOX); + toggle.set_selection_color(toggle.color().darker()); let mut btn = button::Button::new(220, 220, 80, 30, "Hello"); btn.set_frame(widget_themes::OS_DEFAULT_BUTTON_UP_BOX); btn.set_down_frame(widget_themes::OS_DEFAULT_DEPRESSED_DOWN_BOX);