Function relm4::set_global_css

source ·
pub fn set_global_css(style_data: &str)
Expand description

Sets a custom global stylesheet.

Panics

This function panics if RelmApp::new wasn’t called before or this function is not called on the thread that also called RelmApp::new.

Examples found in repository?
relm4/examples/tracker.rs (line 125)
123
124
125
126
127
128
fn main() {
    let app = RelmApp::new("relm4.example.tracker");
    relm4::set_global_css(".identical { background: #00ad5c; }");

    app.run::<App>(());
}