This commit is contained in:
Vivianne 2023-06-15 01:05:08 -07:00
parent b09a392351
commit 7616cbd4ca

View file

@ -182,7 +182,11 @@ impl SimpleComponent for AppModel {
fn load_css() {
let provider = gtk::CssProvider::new();
provider.load_from_data(include_str!("../css/style.css"));
gtk::style_context_add_provider_for_display(&Display::default().expect("Could not connect to a display."), &provider, gtk::STYLE_PROVIDER_PRIORITY_APPLICATION);
gtk::style_context_add_provider_for_display(
&Display::default().expect("Could not connect to a display."),
&provider,
gtk::STYLE_PROVIDER_PRIORITY_APPLICATION,
);
}
fn main() {