Function relm4::set_global_css

source ·
pub fn set_global_css(style_data: &[u8])
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?
examples/tracker.rs (line 125)
123
124
125
126
127
128
fn main() {
    let app = RelmApp::new("relm4.example.tracker");
    relm4::set_global_css(b".identical { background: #00ad5c; }");

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