os-js / osjs-client

OS.js Client Module
https://manual.os-js.org/
Other
31 stars 32 forks source link

[Request] Different Window Managers #19

Closed RossComputerGuy closed 5 years ago

RossComputerGuy commented 5 years ago

It would be cool if the window manager was a package that would be installed so if someone wanted a different window manager, they just change some settings and the new window manager is the applied.

andersevenrud commented 5 years ago

You can replace all behavior via a custom WindowBehavior class and service providers.

RossComputerGuy commented 5 years ago

There needs to be some documentation on that then.

andersevenrud commented 5 years ago

This is the class that spesifices all events, etc:

https://github.com/os-js/osjs-client/blob/master/src/window-behavior.js

And for the rest of the features, it's a matter of replacing the DesktopServiceProvider (or just customize it),

If the custom window manager requires special themes, these can be provided via special packages.

There needs to be some documentation on that then.

Feel free to create an issue on this here:

https://github.com/os-js/manual.os-js.org

andersevenrud commented 5 years ago

And for the rest of the features, it's a matter of replacing the DesktopServiceProvider (or just customize it),

Same goes for PanelServiceProvider if that requires another implementation.

andersevenrud commented 5 years ago

This is the class that spesifices all events, etc:

I forgot to mention that windows can have their own templates as well:

https://github.com/os-js/osjs-client/blob/master/src/window.js#L203

Though this currently does not have a global setting. I'll add that.