Skip to content

Commit

Permalink
fix: upower icon too large
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed May 26, 2023
1 parent 1f980ca commit b9740cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/upower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl Module<gtk::Box> for UpowerModule {
.attach(None, move |properties: UpowerProperties| {
let format = format.replace("{percentage}", &properties.percentage.to_string());
let icon_name = String::from("icon:") + &properties.icon_name;
ImageProvider::parse(&icon_name, &icon_theme, 32)
ImageProvider::parse(&icon_name, &icon_theme, 24)
.map(|provider| provider.load_into_image(icon.clone()));
label.set_markup(format.as_ref());
Continue(true)
Expand Down

0 comments on commit b9740cb

Please sign in to comment.