Background

Type Alias Background 

Source
pub type Background = Background;
Expand description

Type alias of crate::Background

Aliased Type§

pub struct Background {
    pub name: String,
    pub style: String,
}

Fields§

§name: String

The name of the background.

When generated by KLE, this is the same as the name shown in the dropdown menu, for example "Carbon fibre 1".

§style: String

The CSS style of the background.

When generated by KLE, this sets the CSS background-image property to a relative url where the associated image is located. For example the Carbon fibre 1 background will set style to "background-image: url('/bg/carbonfibre/carbon_texture1879.png');".