Fix icons not showing when using flake

This commit is contained in:
2024-06-04 22:12:54 +02:00
parent 367997839c
commit 41f79a992e
5 changed files with 55 additions and 34 deletions

View File

@@ -4,7 +4,7 @@ use chrono::Utc;
use gtk::prelude::*;
use relm4::{
component::{AsyncComponent, AsyncComponentParts, AsyncController},
gtk::Adjustment,
gtk::{gdk, Adjustment},
prelude::*,
AsyncComponentSender,
};
@@ -115,6 +115,10 @@ impl AsyncComponent for AppModel {
sender: AsyncComponentSender<Self>,
) -> AsyncComponentParts<Self> {
relm4_icons::initialize_icons();
let display = gdk::Display::default().unwrap();
let theme = gtk::IconTheme::for_display(&display);
theme.add_resource_path("/org/gtkrs/icons/");
theme.add_resource_path("/org/gtkrs/icons/scalable/actions/");
let mcdu = McduModel::builder()
.launch(())