From 76f328a16e15ea46ab18fd4b87a95f94f54b16d2 Mon Sep 17 00:00:00 2001 From: Tayou Date: Thu, 8 Jan 2026 10:50:49 +0100 Subject: [PATCH] support _format on clock time label (#344) use _display as format string directly remove log message update docs --- wlx-overlay-s/src/gui/README.md | 2 +- wlx-overlay-s/src/gui/panel/label.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wlx-overlay-s/src/gui/README.md b/wlx-overlay-s/src/gui/README.md index d7b0cda..65e51cc 100644 --- a/wlx-overlay-s/src/gui/README.md +++ b/wlx-overlay-s/src/gui/README.md @@ -10,7 +10,7 @@ For more, refer to: `wayvrctl panel-modify --help` Clock labels are driven by the current time, adhering to the user's 12/24 hour setting as well as timezone settings. -Available display values are: `name` (timezone name), `time`, `date`, `dow` +Available display values are: `name` (timezone name), `time`, `date`, `dow` or a custom [format string](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) like `%H:%M:%S`. See the Custom Timezones section for more info on timezones. Skip `_timezone` to use local time. diff --git a/wlx-overlay-s/src/gui/panel/label.rs b/wlx-overlay-s/src/gui/panel/label.rs index 58c18d3..cd23da9 100644 --- a/wlx-overlay-s/src/gui/panel/label.rs +++ b/wlx-overlay-s/src/gui/panel/label.rs @@ -98,8 +98,7 @@ pub(super) fn setup_custom_label( } } unk => { - log::warn!("Unknown display value for clock label source: {unk}"); - return; + unk } };