Crates.io | blender_theme |
lib.rs | blender_theme |
version | |
source | src |
created_at | 2024-11-21 23:48:32.792691 |
updated_at | 2024-12-01 01:32:00.095977 |
description | Blender Theme Model |
homepage | |
repository | https://github.com/ameknite/blender_theme |
max_upload_size | |
id | 1456815 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Blender Theme Models. Facilitate the creation of blender themes.
[dependencies]
blender_theme = "0.1"
Using the default blender dark theme.
use blender_theme::{B3dTheme, Version};
fn main() -> color_eyre::Result<()> {
color_eyre::install()?;
let mut theme: B3dTheme = Version::V4_2.get_default_theme()?;
// theme modifications
theme.save_theme("themes/my_theme.xml")?;
Ok(())
}
Using your own theme.
use blender_theme::{B3dTheme, Version};
fn main() -> color_eyre::Result<()> {
color_eyre::install()?;
let theme = B3dTheme::from_file("themes/my_theme.xml", Version::V4_2)?;
// theme modifications
theme.save_theme("themes/my_modified_theme.xml")?;
Ok(())
}
blender_theme | blender |
---|---|
0.1 | 3.6 - 4.3 |
Licensed under the terms of the GNU General Public License v3.0 or later.
SPDX-License-Identifier: GPL-3.0-or-later