Clock: AM/PM in 12-hour mode, and the default panel clock now has source
CI / test (push) Failing after 16s

clock-digital12 (the default panel's clock) was a prebuilt wasm with no source.
It is now a component built from lib/clock like the Digital Clock, starting in
12-hour mode with AM/PM, and it gets the same right-click Module settings.
Both digital clocks get a "Show AM/PM" switch, offered in 12-hour mode (on by
default).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hhrQpz9texRcAtgECq
This commit is contained in:
Claude committed 2026-11-25 19:14:46 +00:00
1 parent 51b914f6cf
commit c32a31ffd7
19 files changed
+930 -10

No files matched your search

+7 -2
View File
@@ -12,13 +12,17 @@ pub let binary_config : ClockConfig
pub fn binary_info() -> (String, String, Int32, Int32, Int32)
pub let digital12_config : ClockConfig
pub fn digital12_info() -> (String, String, Int32, Int32, Int32)
pub let digital_config : ClockConfig
pub fn digital_info() -> (String, String, Int32, Int32, Int32)
pub fn render_binary(@types.Size, @theme.Tokens, @types.Datetime, seconds? : Bool) -> Array[@types.DrawOp]
pub fn render_digital(@types.Size, @theme.Tokens, @types.Datetime, hour12? : Bool, show_date? : Bool) -> Array[@types.DrawOp]
pub fn render_digital(@types.Size, @theme.Tokens, @types.Datetime, hour12? : Bool, show_date? : Bool, ampm? : Bool) -> Array[@types.DrawOp]
// Errors
@@ -27,10 +31,11 @@ pub(all) struct ClockConfig {
mut hour12 : Bool
mut show_date : Bool
mut seconds : Bool
mut ampm : Bool
}
pub fn ClockConfig::binary_items(Self) -> Array[ConfigEntry]
pub fn ClockConfig::digital_items(Self) -> Array[ConfigEntry]
pub fn ClockConfig::new() -> Self
pub fn ClockConfig::new(hour12? : Bool) -> Self
pub fn ClockConfig::set(Self, String, String) -> Bool
#derive(Eq, @debug.Debug)