aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets/datetime.rs
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2024-07-15 16:16:46 +0200
committerDaniel Jankowski <daniel.jankowski@rub.de>2024-07-15 16:16:46 +0200
commit68d8d4998547e859527ad7aa7112d09ee74f0fbb (patch)
tree117f770a008eb44099410c7378d2770122f30895 /src/widgets/datetime.rs
parentchore: update cargo deps (diff)
downloadsl0pstatus-68d8d4998547e859527ad7aa7112d09ee74f0fbb.tar.gz
sl0pstatus-68d8d4998547e859527ad7aa7112d09ee74f0fbb.tar.xz
sl0pstatus-68d8d4998547e859527ad7aa7112d09ee74f0fbb.zip
feat: add color aliases
closes #75
Diffstat (limited to 'src/widgets/datetime.rs')
-rw-r--r--src/widgets/datetime.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/datetime.rs b/src/widgets/datetime.rs
index 1d3a23b..5e9c099 100644
--- a/src/widgets/datetime.rs
+++ b/src/widgets/datetime.rs
@@ -51,7 +51,7 @@ impl DateTimeWidget {
format: format.to_owned(),
date_format: date_format.to_owned(),
time_format: time_format.to_owned(),
- color_format: FormattedPart::multiple_from_format_string(color_format),
+ color_format: FormattedPart::multiple_from_format_string(color_format, config),
time_zone,
}
}