Make clock time large and bold.

This commit is contained in:
Bill Thiede 2019-09-24 15:06:46 -07:00
parent 3ae58d42aa
commit a1cdec0a24

View File

@ -69,7 +69,14 @@ impl Widget for DateTimeWidget {
None
};
let mut data = Block::new().append_full_text(&time_string).clone();
let time_string = format!(
r#"<span size="x-large" weight="heavy">{}</span>"#,
time_string
);
let mut data = Block::new()
.append_full_text(&time_string)
.use_pango()
.clone();
if let Some(color) = color {
data.color(color);
}