aalcala07 / home_dashboard

Home dashboard built with Pygame
MIT License
0 stars 1 forks source link

Discussion: dynamic/responsive layout #9

Open snoyes opened 2 years ago

snoyes commented 2 years ago

Thinking about things like security cameras - I might not want the camera feed live all the time, but want it to pop open when a motion event is detected. That might be done by:

  1. drawing a new layer over the top
  2. allowing it to switch between templates (you'd have a standard template with no camera feed, and another template that has maybe just the clock and the camera feed on it which shows for 20 seconds after a motion event, then goes back to the standard one)
  3. allow the rows to be dynamically resized - set the camera's row in the template to 0 height, then adjust it to some large fraction for a while after an event, then make it small again

Where else might such dynamic, short-term popups be useful?

aalcala07 commented 2 years ago

I'm planning on implementing alerts that will either take up the whole screen or appear more like a popup. This would effectively hide whatever's behind it. The default alert will just be a red bar at the top with text.

I like the idea of resizing rows to temporarily give emphasis to one component because you might still be able to see everything else, but I think this would require more work to pull off than just an overlay. Maybe something to consider after we have basic alerts and a working camera component.