Skip to content

Add a Minimal lock-screen-style layout with clock, icon column and weather - #58

Open
ollie601 wants to merge 1 commit into
nthnclrk:mainfrom
ollie601:minimal-layout
Open

ollie601 wants to merge 1 commit into
nthnclrk:mainfrom
ollie601:minimal-layout

Conversation

@ollie601

Copy link
Copy Markdown

What this adds

A third Home layout, Minimal, modelled on an iOS-lock-screen-style design reference. It is opt-in under Settings → Layout; List and Dock are unchanged and remain the defaults.

  • Wallpaper: full-screen photo with only a light static veil. Optional per-wallpaper extras in catalog.js:
    • depth: an alpha mask; the photo is shown through it above the clock so the foreground stands in front of the time. Alpine has one, made with the new offline tool scripts/build-depth-masks.py. Summit was tried and rejected; its shaded slopes match its hazy sky.
    • video: a muted inline loop that fades in over the still, only on visible Home. No wallpaper ships with a video yet.
  • Clock and date: a centred 24-hour clock at 433px in the thinnest weight of the Home font (Manrope 200 through a separate Manrope Clock face on the same bundled file), with a round-dot colon, under an uppercase tracked date (THURSDAY, 26 NOVEMBER). List and Dock keep their 12-hour clock.
  • Icon column: a single vertically centred column on the left, holding the Home apps, then Art Mode, All apps and Settings. Marks are monochrome with no plates or visible names; each item keeps its accessible name, and non-brand apps show initials rather than a coloured installed icon. Up/Down runs through apps into the controls without wrapping; Left or Back from a control returns to the selected app; Back from an app opens the existing Samsung Home choice. Minimal uses no glass materials.
  • Weather corner (bottom right): icon, temperature, place, condition with high and low.

New service dependencies, for discussion

CONTRIBUTING asks for an issue before adding a service, so I'm flagging this here instead. Happy to split the weather out or change the approach.

  • Approximate location from the TV's internet address via GeoJS, cached for a day.
  • Conditions from Open-Meteo (CC BY 4.0, credited in Settings → Weather and THIRD_PARTY_NOTICES.md), refreshed every 30 minutes.
  • Requests happen only while Minimal is visible with weather on. Nothing is requested in List or Dock, with weather off, or while the launcher is hidden (including hidden startup).
  • The reading is cached under its own key, cleanframe.weather.v1, for up to three hours. Without a reading the corner stays empty, Home keeps working, and Settings says weather is unavailable. Place names are rendered as text only.
  • Settings gains a Weather group: On/Off (default On) and °C/°F. The overview rows were tightened slightly so seven groups fit.
  • config.xml gains the internet privilege and two <access> origins (https://get.geojs.io, https://api.open-meteo.com), which changes the installed app's permissions.

Preferences

look gains weather and units; older saved preferences get the defaults. A saved Minimal layout writes legacy theme: list, so an older build falls back to List.

Checks run

  • npm run check, npm run check:tools, npm run check:public: pass.
  • CLEANFRAME_PUBLIC_FONTS=1 npm run check:browser: 487 checks pass. This ran against a locally cached Playwright Chromium (build 1243) rather than the pinned build, which wasn't installed on this machine.
  • The browser checks mock both weather services on every page, so they never contact them. New checks cover:
    • the date and 24-hour clock format, centring and 720p scaling;
    • the Alpine depth mask, and video play, pause and fallback (using media generated inside the page);
    • reduced motion;
    • the column's contents, monochrome marks, absence of plates and names, centring, single focus, navigation and click activation;
    • weather text, position and °F conversion without a refetch;
    • no requests outside Minimal, with weather off or while hidden;
    • cache reuse after reload, a failed forecast, and unsafe place names.

Not yet verified on a TV

None of this has been run on a TV, including the weather requests under the new privilege, video decoding and the CSS mask used by the depth layer. Remote feel still needs the usual on-device check.

A public-font screenshot will be added in a comment.

🤖 Generated with Claude Code

Add a third Home layout modelled on the design reference: a full-screen
wallpaper, a centred 24-hour clock in the thinnest Home-font weight with a
round-dot colon, an uppercase tracked date, a monochrome icon column on the
left and a weather corner at the bottom right.

- minimal.js renders the clock, date, column, weather, optional depth layer
  and optional looping wallpaper video; main.js keeps focus, preferences and
  app data. Minimal has its own one-column remote navigation and no glass.
- weather.js fetches approximate location (GeoJS) and conditions
  (Open-Meteo) only while Minimal is visible with weather on, caches the
  reading locally and hides the corner when no reading is available.
  Settings gains a Weather group (On/Off, °C/°F); config.xml adds the
  internet privilege and the two HTTPS origins.
- Alpine gains a depth mask so its peak stands in front of the clock;
  scripts/build-depth-masks.py traces masks offline for clean skies.
- Older builds read a saved Minimal layout as List. Browser checks cover
  the new layout with mocked weather; docs and notices are updated.

Not yet verified on a TV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant