feature/app-theming-and-code-slides #2

Merged
brenno merged 4 commits from feature/app-theming-and-code-slides into main 2026-06-08 12:31:04 +00:00

4 commits

Author SHA1 Message Date
Brenno de Winter
e0379ade59 Refine code slides: title outside the panel, fit-to-space, font choice
Some checks failed
CI / Format · Analyze · Test (push) Has been cancelled
CI / Format · Analyze · Test (pull_request) Has been cancelled
- The slide title now renders above the code panel (styled like other slide
  types) instead of inside the dark code window — it is the slide's title.
- Code is sized to fill the panel: scaled up to use spare space (capped) and
  down so long fragments still fit, instead of a small block in a big box.
- Add a per-profile monospace font for code slides (e.g. Courier), applied in
  the preview and the HTML export.
- Settings: a banner on the Colours and Logo tabs makes clear they edit the
  loaded style profile, and colour pickers now accept a custom hex value.
- Update docs and translations for the new strings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 14:28:04 +02:00
Brenno de Winter
dd54d36a60 Move radar scale to a side legend and add point tooltips
- The radar/spider scale no longer clutters the figure: the evenly spaced
  tick values now sit in a slim legend beside the chart, both in the live
  preview and in the SVG/HTML export.
- Hovering a radar point shows a tooltip (axis, series, value) like the other
  charts; the invisible scale-anchor dataset is ignored.
- Refresh the documentation (README, user guide, file format, changelog) for
  all recent work: code-slide theming with custom hex colours, the spider/radar
  chart type, chart min/max, legend hover, and the chart tooltip behaviour.
- Drop two redundant non-null assertions in the chart preview tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 14:04:47 +02:00
Brenno de Winter
de4a77e2bb Add code-slide theming, radar scale, and proximity line tooltips
Code slides:
- Theme code (broncode) background and text colours, with an optional
  syntax-colouring toggle. With it off the block renders monochrome, so a
  black background + bright green gives a classic CRT-screen look.
- Colour pickers gained a custom hex entry so arbitrary colours (e.g. CRT
  green) can be set, not just presets. Exported HTML mirrors the code colours.

Radar/spider charts:
- Optional min/max now define the radar scale (centre/outer ring) instead of
  threshold lines. Evenly spaced, labelled tick rings are drawn in both the
  live preview and the SVG export so the scale is readable. A nice scale is
  derived from the data when no bounds are set.

Line chart tooltips:
- Detect the touched dot by true (x and y) distance instead of the x-only
  default, so the tooltip belongs to the point under the cursor. Overlapping
  dots all show, and the font shrinks a step when several stack.

New UI strings are translated across all supported languages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 13:51:29 +02:00
Brenno de Winter
67408c213c Improve chart rendering and resolve theme logo paths
Charts:
- Shrink axis label fonts and thin/space x-axis labels by actual pixel
  spacing so dense or long labels no longer overlap.
- Line tooltip shows only the point nearest the cursor instead of every
  series stacked vertically.
- Hovering a legend entry highlights its element: bar/line series fade the
  others (pie expands the matching slice), in app and presentation mode.
- Add optional min/max threshold lines per bar/line chart (ignored for pie),
  editable in the chart editor and drawn in both the live preview and the
  exported SVG.

Theme:
- Resolve relative logo paths in a ThemeProfile against the project path and
  home directory so deck logos load regardless of working directory.

Tests cover bound round-trip, editor fields, SVG bounds, legend-hover fading,
and bound-line rendering.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 12:18:35 +02:00