A theming crate for fltk-rs

Overview

fltk-theme

A theming crate for fltk-rs, based on work by Remy Oukaour and Greg Ercolano, and schemes developed by the NTK GUI library.

Usage

[dependencies]
fltk = "1.1.6"
fltk-theme = "0.1"

Example

Setting the color theme:

use fltk::{prelude::*, *};
use fltk_theme::{ColorTheme, color_themes};

fn main() {
    let a = app::App::default().with_scheme(app::Scheme::Gtk);
    let theme = ColorTheme::from_colormap(color_themes::BLACK_THEME);
    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();
}

Setting the widget theme:

use fltk::{prelude::*, *};
use fltk_theme::{widget_themes, WidgetTheme, ThemeType};

fn main() {
    let a = app::App::default();
    let widget_theme = WidgetTheme::new(ThemeType::Aqua);
    widget_theme.apply();
    let mut win = window::Window::default().with_size(400, 300);
    let mut btn = button::Button::new(160, 200, 80, 30, "Hello");
    btn.set_frame(widget_themes::OS_DEFAULT_BUTTON_UP_BOX);
    win.end();
    win.show();
    a.run().unwrap();
}

Setting the widget scheme:

use fltk::{prelude::*, *};
use fltk_theme::{WidgetScheme, SchemeType};

fn main() {
    let a = app::App::default();
    let widget_scheme = WidgetScheme::new(SchemeType::Clean);
    widget_scheme.apply();
    let mut win = window::Window::default().with_size(400, 300);
    let mut btn = button::Button::new(160, 200, 80, 30, "Hello");
    win.end();
    win.show();
    a.run().unwrap();
}

Widget themes

  • Classic (old Windows theme) alt_test

  • Aero (Windows 7 theme) alt_test

  • Aqua (MacOS theme) alt_test

  • Dark alt_test

  • High Contrast alt_test

  • Blue alt_test

  • Metro (Windows 8 theme) alt_test

  • Greybird (Gnome xfce) alt_test

Theme FrameTypes

Choosing a WidgetTheme will also define a set of FrameTypes which can be used for your widgets.

OS_BUTTON_UP_BOX
OS_CHECK_DOWN_BOX
OS_BUTTON_UP_FRAME
OS_CHECK_DOWN_FRAME
OS_PANEL_THIN_UP_BOX
OS_SPACER_THIN_DOWN_BOX
OS_PANEL_THIN_UP_FRAME
OS_SPACER_THIN_DOWN_FRAME
OS_RADIO_ROUND_DOWN_BOX
OS_HOVERED_UP_BOX
OS_DEPRESSED_DOWN_BOX
OS_HOVERED_UP_FRAME
OS_DEPRESSED_DOWN_FRAME
OS_INPUT_THIN_DOWN_BOX
OS_INPUT_THIN_DOWN_FRAME
OS_MINI_BUTTON_UP_BOX
OS_MINI_DEPRESSED_DOWN_BOX
OS_MINI_BUTTON_UP_FRAME
OS_MINI_DEPRESSED_DOWN_FRAME
OS_DEFAULT_BUTTON_UP_BOX
OS_DEFAULT_HOVERED_UP_BOX
OS_DEFAULT_DEPRESSED_DOWN_BOX
OS_TOOLBAR_BUTTON_HOVER_BOX
OS_TABS_BOX
OS_SWATCH_BOX
OS_SWATCH_FRAME
OS_BG_BOX

You can check the frames example to see all FrameType's you can apply to you widgets. alt_test

Color themes

  • Black theme alt_test

  • Dark theme alt_test

  • Plain gray theme alt_test

  • Tan theme alt_test

  • Shake theme alt_test

Widget Schemes

These provide schemes for widgets without color theming. Currently there are 4 schemes:

  • Clean: Taken from NTK's clear scheme. alt_test

  • Crystal: Taken from NTK's crystal scheme. alt_test

  • Gleam: Taken from NTK's gleam scheme. alt_test

  • SvgBased: This overrides FLTK's Base scheme round/rounded/oval FrameTypes which are drawn using scalable vector graphics. alt_test

You might also like...
Rust bindings for the FLTK GUI library.
Rust bindings for the FLTK GUI library.

fltk-rs Rust bindings for the FLTK Graphical User Interface library. The fltk crate is a cross-platform lightweight gui library which can be staticall

A lightweight cross-platform system-monitoring fltk gui application based on sysinfo
A lightweight cross-platform system-monitoring fltk gui application based on sysinfo

Sysinfo-gui A lightweight cross-platform system-monitoring fltk gui application based on sysinfo. The UI design is inspired by stacer. The svg icons a

📦  Crate Protocol allows anyone to create, manage, and trade a tokenized basket of assets, which we refer to as a Crate.
📦 Crate Protocol allows anyone to create, manage, and trade a tokenized basket of assets, which we refer to as a Crate.

📦 Crate Protocol Crate Protocol allows anyone to create, manage, and trade a tokenized basket of assets, which we refer to as a Crate. A Crate is alw

A fork of the abandoned ffmpeg-next crate which is a fork of the abandoned ffmpeg crate

This is a fork of the abandoned ffmpeg-next crate which is a fork of the abandoned ffmpeg crate. Currently supported FFmpeg versions: 4.x, 5.x. Build

Detects usage of unsafe Rust in a Rust crate and its dependencies.
Detects usage of unsafe Rust in a Rust crate and its dependencies.

cargo-geiger ☢️ A program that lists statistics related to the usage of unsafe Rust code in a Rust crate and all its dependencies. This cargo plugin w

:rocket: Automatic crate publishing done right

semantic-rs The purpose of this tool is to help people to publish crates following the semver specification. Right now if you're building a new crate

A Rust crate for automatically generating C header files from Rust source file.

Please be aware that this crate is no longer actively maintained, please look into the much more feature rich cbindgen instead. rusty-cheddar rusty-ch

Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows

trust Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows Featur

Machine learning crate for Rust

rustlearn A machine learning package for Rust. For full usage details, see the API documentation. Introduction This crate contains reasonably effectiv

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL.

SQLx 🧰 The Rust SQL Toolkit Install | Usage | Docs Built with ❤️ by The LaunchBadge team SQLx is an async, pure Rust† SQL crate featuring compile-tim

Rust crate to extend io::Read & io::Write types with progress callbacks

progress-streams Rust crate to provide progress callbacks for types which implement io::Read or io::Write. Examples Reader extern crate progress_strea

A crate to convert bytes to something more useable and the other way around in a way Compatible with the Confluent Schema Registry. Supporting Avro, Protobuf, Json schema, and both async and blocking.
A crate to convert bytes to something more useable and the other way around in a way Compatible with the Confluent Schema Registry. Supporting Avro, Protobuf, Json schema, and both async and blocking.

#schema_registry_converter This library provides a way of using the Confluent Schema Registry in a way that is compliant with the Java client. The rel

An impish, cross-platform binary parsing crate, written in Rust
An impish, cross-platform binary parsing crate, written in Rust

libgoblin Documentation https://docs.rs/goblin/ changelog Usage Goblin requires rustc 1.40.0. Add to your Cargo.toml [dependencies] goblin = "0.3" Fea

Crate to parse and emit EDN

edn-rs Near Stable no breaking changes expected. Crate to parse and emit EDN This lib does not make effort to conform the EDN received to EDN Spec. Th

Rust crate for performing coordinate transforms
Rust crate for performing coordinate transforms

Synopsis A Rust crate use for performing coordinate transformations. The crate relies on nalgebra vectors to perform the coordinate transformations. C

Rust crate for configurable parallel web crawling, designed to crawl for content

url-crawler A configurable parallel web crawler, designed to crawl a website for content. Changelog Docs.rs Example extern crate url_crawler; use std:

Rust crate for scraping URLs from HTML pages

url-scraper Rust crate for scraping URLs from HTML pages. Example extern crate url_scraper; use url_scraper::UrlScraper; fn main() { let director

Linear Programming for Rust, with an user-friendly API. This crate allows modeling LP problems, and let's you solve them with various solvers.

good_lp A Linear Programming modeler that is easy to use, performant with large problems, and well-typed. use good_lp::{variables, variable, coin_cbc,

⋰·⋰ Feeless is a Nano cryptocurrency node, wallet, tools, and Rust crate.

⋰·⋰ Feeless What is Feeless? Feeless is a Nano cryptocurrency node, wallet, tools, and Rust crate. This is not the official project for Nano, only an

Comments
  • Input.emit doesn`t work when you apply theme

    Input.emit doesn`t work when you apply theme

    Hey fltk team! Thanks for the great GUI libraries!

    You have this function in your library in src\widget_themes\mod.rs

    pub(crate) fn use_native_settings() {
        app::set_visible_focus(false);
        app::set_scrollbar_size(15);
        Tooltip::set_font_size(OS_FONT_SIZE);
        Tooltip::set_delay(0.5);
    }
    

    Because of this line app::set_visible_focus(false); my code below is not working. To fix this, I have to use app::set_visible_focus(true); after widget_theme.apply(); in code below.

    use fltk::{prelude::*, *};
    use fltk_theme::{widget_themes, WidgetTheme, ThemeType};
    #[derive(Copy, Clone)]
    enum TaskMessage {
        Done
    }
    
    fn main () {
        let a = app::App::default();
        let (sender, receiver) = app::channel();
    
        let widget_theme = WidgetTheme::new(ThemeType::Dark);
        widget_theme.apply();
        
        let mut win = window::Window::default().with_size(400, 300);
        let mut btn = button::Button::new(160, 200, 80, 30, "Hello");
        btn.set_frame(widget_themes::OS_DEFAULT_BUTTON_UP_BOX);
        btn.emit(sender, TaskMessage::Done);
    
        let mut add_input = input::Input::default().with_size(200, 30);
        add_input.emit(sender, TaskMessage::Done);
    
        win.end();
        win.show();
    
        while a.wait() {
            if let Some(msg) = receiver.recv() {
                match msg {
                    TaskMessage::Done => {
                        println!("Here")
                    }
                }
            }
        }
        a.run().unwrap();
    }
    

    Excuse me for my impudence, but in order to find this, I had to look at the library code. I think that changing the theme of the application should not affect the state management

    opened by Nawarius 2
  • UndefinedSymbolReference when cross compile to macos

    UndefinedSymbolReference when cross compile to macos

    = note: warning: unsupported linker arg: -dead_strip warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/build/Release' warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/lib64' warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/lib/Release' warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/lib64/Release' error(link): undefined reference to symbol '_get_selectedContentBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_controlColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemRedColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_alternateSelectedControlTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemGrayColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_linkColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_scrubberTexturedBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemPinkColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_shadowColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemOrangeColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_secondaryLabelColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_unemphasizedSelectedTextBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemBlueColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_gridColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_controlAccentColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_quaternaryLabelColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_separatorColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_headerTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_disabledControlTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_underPageBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_selectedMenuItemTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_highlightColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemIndigoColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_findHighlightColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_windowBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_selectedTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemGreenColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_controlTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_windowFrameTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemTealColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_textColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemYellowColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_selectedTextBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_unemphasizedSelectedTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_textBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_unemphasizedSelectedContentBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_selectedControlTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemPurpleColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_tertiaryLabelColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_controlBackgroundColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_keyboardFocusIndicatorColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_labelColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_placeholderTextColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_selectedControlColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error(link): undefined reference to symbol '_get_systemBrownColor' error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)' error: UndefinedSymbolReference

    where do these symbols defined?

    opened by cstkingkey 5
Releases(0.4.0)
  • 0.4.0(Oct 8, 2021)

    • Add a new ColorTheme constructor ::new like the other main types in the crate.
    • Avoid reloading the scheme when changing the ColorTheme.
    • Rename ThemeType::Aqua to ThemeType::AquaClassic.
    • Add a fluent scheme.
    • Add an Aqua scheme which mimics modern Aqua.
    • Add a colors module with Html colors and Aqua dark and light precached system colors.
    • Add a colors::aqua::sys module with system colors that's queried on MacOS systems (only works on MacOS).
    Source code(tar.gz)
    Source code(zip)
Owner
null
A lib crate for gathering system info such as cpu, distro, environment, kernel, etc in Rust.

nixinfo A lib crate for gathering system info such as cpu, distro, environment, kernel, etc in Rust. To use: nixinfo = "0.2.8" in your Cargo.toml. Cur

ValleyKnight 37 Nov 26, 2022
This is a demo Library of fltk-rs, which is used to learn various new gadgets of experimental fltk-rs.

fltk-rs Demo This is a demo Library of fltk-rs, which is used to learn various new gadgets of experimental fltk-rs. Demos demo9 Demo9 is an applicatio

WumaCoder 6 Dec 28, 2022
Easy c̵̰͠r̵̛̠ö̴̪s̶̩̒s̵̭̀-t̶̲͝h̶̯̚r̵̺͐e̷̖̽ḁ̴̍d̶̖̔ ȓ̵͙ė̶͎ḟ̴͙e̸̖͛r̶̖͗ë̶̱́ṉ̵̒ĉ̷̥e̷͚̍ s̷̹͌h̷̲̉a̵̭͋r̷̫̊ḭ̵̊n̷̬͂g̵̦̃ f̶̻̊ơ̵̜ṟ̸̈́ R̵̞̋ù̵̺s̷̖̅ţ̸͗!̸̼͋

Rust S̵̓i̸̓n̵̉ I̴n̴f̶e̸r̵n̷a̴l mutability! Howdy, friendly Rust developer! Ever had a value get m̵̯̅ð̶͊v̴̮̾ê̴̼͘d away right under your nose just when

null 294 Dec 23, 2022
Example crate using fltk-build

white-frame This is just an example showing the use of fltk-build to create native C/C++ FLTK and cfltk modules for fltk-rs. This repo contains 2 exam

Mohammed Alyousef 1 Nov 21, 2021
Rust bindings for the FLTK GUI library.

fltk-rs Rust bindings for the FLTK Graphical User Interface library. The FLTK crate is a crossplatform lightweight gui library which can be statically

Mohammed Alyousef 1.1k Jan 9, 2023
Listener widget for fltk-rs

This crate provides a Listener widget which can basically wrap any fltk-rs widget (implementing WidgetBase and WidgetExt)

fltk-rs 7 Dec 30, 2022
A smart table widget for fltk-rs

fltk-table A smart table widget for fltk-rs. It aims to reduce the amount of boilerplate required to create a table. Usage [dependencies] fltk = "1.2"

fltk-rs 11 Dec 8, 2022
FLTK frontend for Egui WGPU backend.

Egui FLTK Frontend FLTK Frontend for Egui WGPU Backend On linux Debian/Ubuntu, make sure to install the latest main requirements: sudo apt-get update

Adia Robbie 5 Oct 25, 2022
Simplify generating an fltk gui from a data structure

This crate aims to simplify generating gui from a data structure.

fltk-rs 3 Dec 19, 2021
A SameGame/TileFall-like game written in Rust/FLTK.

Gravitate A SameGame/TileFall-like game written in Rust/FLTK. Tested on Linux and Windows. gravitate.exe is a precompiled Windows binary that should r

Mark 4 Dec 1, 2022