mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
fix: upower icon too large
This commit is contained in:
parent
1f980ca783
commit
b9740cba8f
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ impl Module<gtk::Box> for UpowerModule {
|
||||||
.attach(None, move |properties: UpowerProperties| {
|
.attach(None, move |properties: UpowerProperties| {
|
||||||
let format = format.replace("{percentage}", &properties.percentage.to_string());
|
let format = format.replace("{percentage}", &properties.percentage.to_string());
|
||||||
let icon_name = String::from("icon:") + &properties.icon_name;
|
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()));
|
.map(|provider| provider.load_into_image(icon.clone()));
|
||||||
label.set_markup(format.as_ref());
|
label.set_markup(format.as_ref());
|
||||||
Continue(true)
|
Continue(true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue