use fltk::{enums::*, prelude::*, *};
use fltk_theme::widget_schemes::sweet::frames::*;
use fltk_theme::{SchemeType, WidgetScheme};
use fltk_theme::colors::sweet::dark::*;
fn main() {
let a = app::App::default();
app::set_font_size(12);
let bg = windowBackgroundColor.to_rgb();
app::background(bg.0, bg.1, bg.2);
let ctrl = controlAccentColor.to_rgb();
app::background2(ctrl.0, ctrl.1, ctrl.2);
let lbl = labelColor.to_rgb();
app::foreground(lbl.0, lbl.1, lbl.2);
let txt_sel_bg = selectedTextBackgroundColor.to_rgb();
app::set_selection_color(txt_sel_bg.0, txt_sel_bg.1, txt_sel_bg.2);
let widget_scheme = WidgetScheme::new(SchemeType::Sweet);
widget_scheme.apply();
let mut win = window::Window::default()
.with_size(400, 300)
.with_label("Sweet Dark");
let mut col = group::Flex::default()
.with_size(340, 240)
.center_of_parent()
.column();
col.set_frame(FrameType::NoBox);
col.set_margins(100, 40, 100, 40);
let mut choice = menu::Choice::default();
choice.set_color(*controlColor);
choice.add_choice("Opt1|Opt2|Opt3");
choice.set_value(2);
let mut inp = input::Input::default();
inp.set_color(*controlColor);
let mut check = button::CheckButton::default().with_label(" Check");
check.set_value(true);
check.set_frame(enums::FrameType::FlatBox);
let mut round = button::RoundButton::default().with_label(" Round");
round.set_value(true);
round.set_frame(enums::FrameType::FlatBox);
let mut btn = button::Button::default().with_label("Hello");
btn.set_color(*controlColor);
btn.set_selection_color(*controlAccentColor);
btn.set_frame(OS_DEFAULT_BUTTON_UP_BOX);
col.end();
win.end();
win.make_resizable(true);
win.show();
a.run().unwrap();
}