Skip to main content
On this page

Look and widgets

Your board​

The Overview's board holds up to a handful of widgets. Add a widget opens the gallery with the three widget types. You can move each tile earlier or later, or remove it. A widget that fails shows the error in its tile, with Try again. The board belongs to the browser you arranged it in. Another computer sees its own board. Adding a built-in or a widget built from readings changes nothing on the box and starts nothing running.

The Overview with the Tide background and a hand-written Greeting widget at the top of the board.

Settings → Look​

Everyone signed in has this pane. The background on it is yours alone: everyone on the box picks their own, and yours follows you to every browser you sign in to, LosOS Cloud and LosOS Git included. A change takes effect as soon as you save it, with no rebuild.

Settings, Look: the backgrounds Plain, Tide, Grid, Dusk and your own picture, the veil slider, and the hand-written widgets kept on this box.

  • Your background: one of three shipped pictures (Tide, Grid, Dusk), an upload of your own (PNG, JPEG, WebP or GIF, up to 8 MiB), or Plain.
  • Veil: lays the page colour over the picture, from 20 % to 90 %, so text stays readable in the light and the dark theme.
  • Widgets written by hand: the hand-written widgets kept on this box, shown to the people who may change the look of the box. You can edit or delete each one.

Writing a widget​

Write one, in the gallery or on the Look pane, opens an editor with the widget's files, a live preview and a Help tab. The preview is the real sandboxed frame. The widget gets the box's readings and colours through the losos object listed on the widget types page, and nothing else. It has no admin key, no API and no access to the page around it. It may fetch from the internet.

A new widget starts as three files: index.html, which links style.css and app.js. Add a file adds another, such as data.json for the script to fetch or dot.svg for an <img>. The editor suggests as you type: the losos object, the names of the readings, the box's colour variables after var(-- and the widget's own file names. Ctrl+Space asks for suggestions anywhere.

The widget editor: the files and their code on the left, the live preview in the real sandboxed frame on the right, and the Help tab.

Read pasted code first

A hand-written widget runs in every browser that opens the box. Read anything you paste from the internet before you keep it, as the note above the editor says.