calendar
git clone https://git.lucas.co/cce-calendar.git
fix: the month arrows' fallback labels are words, not angle-quote characters
Prev and Next draw the chevron-left / chevron-right glyphs; the label
shown only when the icon set is missing was "‹" / "›", a symbol in a
fallback face. It is Prev / Next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/main.rs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 4173a72..3ac8f32 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -584,7 +584,8 @@ impl CalendarApp {
/// at the button radius, its face the DE button colour for its state,
/// then either a bundled cce-icons glyph (placed as Button's icon face:
/// centred, the short side less 8) or, failing that, the label in the
- /// button font and the control label colour.
+ /// button font and the control label colour — a word, never a symbol
+ /// character, since it shows only when the icon set is missing.
fn paint_header_btn(&self, pc: &mut PaintCtx, rect: Rect, which: HeaderBtn, icon: Option<&str>, label: &str) {
let face = if self.pressed_btn == Some(which) {
button_press_color()
@@ -611,8 +612,8 @@ impl CalendarApp {
fn paint_header(&self, pc: &mut PaintCtx, g: &Geom) {
let bold = TextAttrs { italic: false, weight: Some(700) };
- self.paint_header_btn(pc, g.prev_btn, HeaderBtn::Prev, Some("chevron-left"), "‹");
- self.paint_header_btn(pc, g.next_btn, HeaderBtn::Next, Some("chevron-right"), "›");
+ self.paint_header_btn(pc, g.prev_btn, HeaderBtn::Prev, Some("chevron-left"), "Prev");
+ self.paint_header_btn(pc, g.next_btn, HeaderBtn::Next, Some("chevron-right"), "Next");
let title = Rect {
x: g.prev_btn.x + g.prev_btn.width,
y: g.header.y,