1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

feat(sys-info): pango markup support

This commit is contained in:
Jake Stanger 2022-10-16 01:00:14 +01:00
parent dec402edd9
commit 91c57edc73
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -245,7 +245,11 @@ impl Module<gtk::Box> for SysInfoModule {
let mut labels = Vec::new();
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());
container.add(&label);
labels.push(label);
@ -261,7 +265,7 @@ impl Module<gtk::Box> for SysInfoModule {
.to_string()
});
label.set_text(format_compiled.as_ref());
label.set_markup(format_compiled.as_ref());
}
Continue(true)