mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
feat(sys-info): pango markup support
This commit is contained in:
parent
dec402edd9
commit
91c57edc73
1 changed files with 6 additions and 2 deletions
|
@ -245,7 +245,11 @@ impl Module<gtk::Box> for SysInfoModule {
|
||||||
let mut labels = Vec::new();
|
let mut labels = Vec::new();
|
||||||
|
|
||||||
for format in &self.format {
|
for format in &self.format {
|
||||||
let label = Label::builder().label(format).name("item").build();
|
let label = Label::builder()
|
||||||
|
.label(format)
|
||||||
|
.use_markup(true)
|
||||||
|
.name("item")
|
||||||
|
.build();
|
||||||
label.set_angle(info.bar_position.get_angle());
|
label.set_angle(info.bar_position.get_angle());
|
||||||
container.add(&label);
|
container.add(&label);
|
||||||
labels.push(label);
|
labels.push(label);
|
||||||
|
@ -261,7 +265,7 @@ impl Module<gtk::Box> for SysInfoModule {
|
||||||
.to_string()
|
.to_string()
|
||||||
});
|
});
|
||||||
|
|
||||||
label.set_text(format_compiled.as_ref());
|
label.set_markup(format_compiled.as_ref());
|
||||||
}
|
}
|
||||||
|
|
||||||
Continue(true)
|
Continue(true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue