mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
fix(label): not using markup
This commit is contained in:
parent
f8d8c06300
commit
1a272e00fb
1 changed files with 2 additions and 1 deletions
|
@ -45,11 +45,12 @@ impl Module<Label> for LabelModule {
|
||||||
_info: &ModuleInfo,
|
_info: &ModuleInfo,
|
||||||
) -> Result<ModuleWidget<Label>> {
|
) -> Result<ModuleWidget<Label>> {
|
||||||
let label = Label::new(None);
|
let label = Label::new(None);
|
||||||
|
label.set_use_markup(true);
|
||||||
|
|
||||||
{
|
{
|
||||||
let label = label.clone();
|
let label = label.clone();
|
||||||
context.widget_rx.attach(None, move |string| {
|
context.widget_rx.attach(None, move |string| {
|
||||||
label.set_label(&string);
|
label.set_markup(&string);
|
||||||
Continue(true)
|
Continue(true)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue