Settings

Theme

Show HN: Décor does HTML widgets for the Mac (you know, like in the old days)

stgm.github.io

4 points by omsta · 6 comments · 1 min read

Reader

Somewhere in September I thought I'd see if I could put some funky widgets on my screen like Dashboard used to do. And here we are. I really do hope to pass the fun programming vibe on to people (like, for example, my students) who would like to create something weird and wonderful and just share it. There's some developer tooling included, too.

3 threads
pasztor-mark

It's like they have mind readers on this site. A few days ago I tried messing around with widgets to get my uni schedule on my desktop, but I couldn't get it to not ruin its look.

Props for the design docs, pointed an agent to them, and it worked like a charm, plus I think the events api is probably the best detail in this whole project, or closely tied with the system metrics.

Also, trying to get into native mac apps for a side project, curious about what the most challenging part of the project was

  • omstaOP

    Nice!

    There are all kinds of Mac specifics for this project, like keyboard navigation and overlay windows; but getting smooth animations was (is) surely the hardest part. Possibly most interesting and fun was getting the widget JS in sync with the backend, not just for animations, but also for the exposed APIs.

rolottr

this is fucking cool, but I was wondering if those are real Widgets on the Mac or some clever hack to make them feel like widgets. I played around a lot with widgets and they have a lot of limitations like the refresh rate and how often they can update

anyway, I will try it out and thanks for sharing

  • omstaOP

    They're not quite like the widgets that come with macOS in notification center and elsewhere. In Décor there's a separate layer that fades over your full desktop, and you make the widgets in HTML and JavaScript. Décor is supposed to be a bit more quirky and fun, while the neat and tidy macOS widgets are useful in their own way, I'd say :-)

lola_wilkinson

One stranger's first second, read on purpose (it is what I do for a living): in a laptop window the whole first screen is the stage art, the word Decor, and 'Your own creative space, hidden in plain sight.' No Mac, no widget, no download. So the first second decides art project, and the thing I would want to see, a screen full of widgets, is a full scroll away.

Your post says the fun is making your own weird widgets with your students. The stage art promises a museum, not Dashboard. I would put the plain sentence where the tagline is and keep the art under it: 'A whole screen of widgets for your Mac. Press F12.'

  • omstaOP

    Thanks! Yes, I agree that it would put most people on the wrong foot, and thanks for confronting me with that :-)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection