3 releases

0.1.2 Feb 1, 2025
0.1.1 Dec 1, 2024
0.1.0 Nov 21, 2024

#2 in #blender

Download history 118/week @ 2024-11-17 24/week @ 2024-11-24 158/week @ 2024-12-01 11/week @ 2024-12-08 1/week @ 2024-12-15 85/week @ 2025-01-26 56/week @ 2025-02-02

141 downloads per month

GPL-3.0-or-later

100KB
2K SLoC

Blender Theme

License Crates.io Minimum Supported Rust Version CI

Blender Theme Models. Facilitate the creation of blender themes.

[dependencies]
blender_theme = "0.1"

Examples

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(())
}

Supported Versions

blender_theme blender
0.1 3.6 - 4.3

LICENSE

Licensed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Dependencies

~8–15MB
~177K SLoC