Update main.rs

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-07-01 02:39:34 +03:00 committed by GitHub
parent a3424dc0dd
commit 884978e7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ fn main() {
application.connect_startup(|app| { application.connect_startup(|app| {
// The CSS "magic" happens here. // The CSS "magic" happens here.
let provider = CssProvider::new(); let provider = CssProvider::new();
provider.load_from_data(include_str!("/usr/lib/pika/drivers/style.css")); provider.load_from_data(include_str!("style.css"));
// We give the CssProvided to the default screen so the CSS rules we added // We give the CssProvided to the default screen so the CSS rules we added
// can be applied to our window. // can be applied to our window.
gtk::style_context_add_provider_for_display( gtk::style_context_add_provider_for_display(