GitXplorerGitXplorer
t

iced_style_config

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
12cfe617a2cb91ca9b7a353e8f10b8f6d5259ef8

Check licenses and advisories in CI

ttaiki-e committed 2 years ago
Unverified
ccb0a01fb92a1a918e2e8bce6c6c8ec43ac6c903

Overhaul tidy check

ttaiki-e committed 2 years ago
Unverified
f8e2b66f862d1886ef25a3df8d317d39a12ee123

Update cargo-check-external-types to 0.1.6

ttaiki-e committed 2 years ago
Unverified
a1979acd3c5ae734050a1c8b574098913ba1c125

Fix renamed_and_removed_lints warning

ttaiki-e committed 2 years ago
Unverified
72586e8093e39ec5a144804f52692d4a35c8cd54

Update cargo-check-external-types to 0.1.5

ttaiki-e committed 2 years ago
Unverified
5d00e4f165850b2d2da933e2577535900f60f31e

Use token input option instead of environment variable

ttaiki-e committed 2 years ago

README

The README file for this repository.

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.