orbtk_theming/config/
style_config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::HashMap;

use ron::Value;
use serde_derive::{Deserialize, Serialize};

/// Defines a style. A style could be base on other styles and contains a list for properties
/// and a list of state properties.
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct StyleConfig {
    // set default string to base style
    #[serde(default)]
    pub base: String,
    #[serde(default)]
    pub states: HashMap<String, HashMap<String, Value>>,
    #[serde(default)]
    pub properties: HashMap<String, Value>,
}