mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 02:31:04 +02:00
parent
6f7af07cdd
commit
ac34c05d2e
1 changed files with 4 additions and 2 deletions
|
@ -97,7 +97,10 @@ impl Module<gtk::Box> for FocusedModule {
|
||||||
let container = gtk::Box::new(info.bar_position.get_orientation(), 5);
|
let container = gtk::Box::new(info.bar_position.get_orientation(), 5);
|
||||||
|
|
||||||
let icon = gtk::Image::new();
|
let icon = gtk::Image::new();
|
||||||
add_class(&icon, "icon");
|
if self.show_icon {
|
||||||
|
add_class(&icon, "icon");
|
||||||
|
container.add(&icon);
|
||||||
|
}
|
||||||
|
|
||||||
let label = Label::new(None);
|
let label = Label::new(None);
|
||||||
add_class(&label, "label");
|
add_class(&label, "label");
|
||||||
|
@ -106,7 +109,6 @@ impl Module<gtk::Box> for FocusedModule {
|
||||||
truncate.truncate_label(&label);
|
truncate.truncate_label(&label);
|
||||||
}
|
}
|
||||||
|
|
||||||
container.add(&icon);
|
|
||||||
container.add(&label);
|
container.add(&label);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue