fltk-theme
A theming crate for fltk-rs, based on work by Greg Ercolano.
Usage
[]
= "1.1.3"
= "0.1"
Example
use ;
use Theme;
-
Black theme
-
Dark theme
-
Plain gray theme
-
Tan theme
-
Shake theme
A theming crate for fltk-rs, based on work by Greg Ercolano.
[dependencies]
fltk = "1.1.3"
fltk-theme = "0.1"
use fltk::{prelude::*, *};
use fltk_theme::Theme;
fn main() {
let a = app::App::default().with_scheme(app::Scheme::Gtk);
let theme = Theme::load("examples/themes/black.map").unwrap();
theme.apply();
let mut win = window::Window::default().with_size(400, 300);
let mut btn = button::Button::new(160, 200, 80, 40, "Hello");
btn.set_color(btn.color().lighter());
win.end();
win.show();
a.run().unwrap();
}
Black theme
Dark theme
Plain gray theme
Tan theme
Shake theme