Skip to content

Commit

Permalink
Use resource prefix for initializing icons
Browse files Browse the repository at this point in the history
  • Loading branch information
dastansam committed Oct 13, 2024
1 parent 059bb06 commit e0e059e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,8 @@ impl Cli {
});

app.set_global_css(GLOBAL_CSS);
println!("Initializing icons");
println!("icon names example: {:?}", icon_names::MENU_LARGE);
println!("icon bytes size: {:?}", icon_names::GRESOURCE_BYTES.len());
relm4_icons::initialize_icons(icon_names::GRESOURCE_BYTES);

relm4_icons::initialize_icons(icon_names::GRESOURCE_BYTES, icon_names::RESOURCE_PREFIX);

// Prefer dark theme in cross-platform way if environment is configured that way
if let Some(settings) = gtk::Settings::default() {
Expand Down

0 comments on commit e0e059e

Please sign in to comment.