feat: include style.css into the executable
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ use gtk4::{CssProvider, STYLE_PROVIDER_PRIORITY_APPLICATION};
|
||||
pub fn load() {
|
||||
let provider = CssProvider::new();
|
||||
|
||||
provider.load_from_path("style.css");
|
||||
provider.load_from_data(include_str!("../style.css"));
|
||||
|
||||
gtk4::style_context_add_provider_for_display(
|
||||
>k4::gdk::Display::default().unwrap(),
|
||||
|
||||
Reference in New Issue
Block a user