Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop Widgets #345

Open
secondtruth opened this issue Apr 25, 2024 · 5 comments
Open

Desktop Widgets #345

secondtruth opened this issue Apr 25, 2024 · 5 comments
Labels
idea An idea for a feature/improvement

Comments

@secondtruth
Copy link
Contributor

secondtruth commented Apr 25, 2024

I propose the addition of desktop widget functionality to Puter, similar to the "Gadgets" found in Windows 7 back in the days. This would allow users to add customizable widgets directly onto their Puter desktops, such as clocks, weather displays, gauges and graphs, as well as quick access tools.

Details

The proposed desktop widget system would operate within a sidebar or as standalone elements that can be freely placed on the desktop. The users may decide which display mode they like.

The widgets could include:

  • Clock and Calendar: Display current time and date information.
  • Weather Display: Show live weather updates and forecasts.
  • Gauges, Graphs, Monitors: Provide real-time stats about system resources, etc.
  • Quick Notes: Allow users to write down notes and pin them on the desktop for easy access.
  • Quick Links Links to favorite settings, folders, apps, etc.

Implementation would require the development of a widget API and/or an iframe solution, that allows both the core development team and third-party developers to create and distribute their own widgets.

The intent is to enhance both the customizability and the functionality of the desktop, making it more interactive and appealing.

Potential Future Enhancements

  • Development of a widget store where users can download new widgets.
  • Support for animated and interactive backgrounds that integrate with widget functionalities.

References

@secondtruth secondtruth added the idea An idea for a feature/improvement label Apr 25, 2024
@Mandeep0001
Copy link

Good work

@KernelDeimos
Copy link
Contributor

I like this idea. Here are some important considerations that come to mind:

  • widgets should be apps
    • we have two options:
      • decouple iframe from UIWindow
        • requires refactor
        • only works if iframes can have transparent backgrounds
      • some kind of pseudo-"canvas api" with event listeners
        • needs to be very restrictive for security reasons
        • more complex than iframe approach
  • TODO: finish list later (something came up)

@AtkinsSJ
Copy link
Collaborator

AtkinsSJ commented Apr 26, 2024

Maybe widgets could be a special kind of UIWindow that doesn't show a title bar, and remains at a low zindex, etc? They have a lot in common I think.

I believe iframes can be transparent, too.

@secondtruth
Copy link
Contributor Author

I believe iframes can be transparent, too.

I found a good article about this topic: https://fvsch.com/transparent-iframes.

@Zac0511
Copy link
Contributor

Zac0511 commented May 7, 2024

This is a very cool idea. Widgets would be cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea An idea for a feature/improvement
Projects
None yet
Development

No branches or pull requests

5 participants