iced_style_config

Crates.ioiced_style_config
lib.rsiced_style_config
version0.2.1
sourcesrc
created_at2022-08-05 11:29:19.725789
updated_at2022-09-01 14:42:22.963326
descriptionCreate Iced style sheets from configuration files.
homepage
repositoryhttps://github.com/taiki-e/iced_style_config
max_upload_size
id639276
size230,033
Taiki Endo (taiki-e)

documentation

README

iced_style_config

crates.io docs.rs license rustc build status

Create Iced style sheets from configuration files.

Usage

Add this to your Cargo.toml:

[dependencies]
iced = "0.4"
iced_style_config = "0.2"

To disable hot reloading support:

[dependencies]
iced = "0.4"
iced_style_config = { version = "0.2", default-features = false }

Note: Hot reloading on WebAssembly is not yet supported.

Compiler support: requires the latest stable rustc

Examples

cargo run --example hot_reloading

Schemas for configuration files

The schema.json is the JSON schemas for the configuration files, and when combined with an extension of the editor that supports completion using the JSON schema, completion can be enabled.

Visual Studio Code

In VS Code, you can enable completion and validation by installing the Even Better TOML extension and using the evenBetterToml.schema.associations configuration object in settings.json.

For example:

{
  "evenBetterToml.schema.associations": {
    ".*_theme\\.toml": "https://raw.githubusercontent.com/taiki-e/iced_style_config/main/schema.json",
  }
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 27

cargo fmt