fltk-theme 0.7.9

A theming crate for fltk-rs
Documentation
use fltk::{enums::*, prelude::*, *};
use fltk_theme::widget_schemes::aqua::frames::*;
use fltk_theme::{SchemeType, WidgetScheme};

use fltk_theme::colors::aqua::dark::*; // get all the dark aqua colors

// use fltk_theme::colors::aqua::light::*; // get all the light aqua colors

// use fltk_theme::colors::aqua::sys::*; // get all the system aqua colors, requires MacOS

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);
    app::set_color(Color::Selection, 255, 255, 255);
    let widget_scheme = WidgetScheme::new(SchemeType::Aqua);
    widget_scheme.apply();
    let mut win = window::Window::default()
        .with_size(400, 300)
        .with_label("Aqua Dark");
    let mut col = group::Flex::default()
        .with_size(340, 240)
        .center_of_parent()
        .column();
    col.set_frame(FrameType::EngravedBox);
    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();
}