nodegui / vue-nodegui

Build performant, native and cross-platform desktop applications with native Vue + powerful CSS like styling.🚀
https://vue.nodegui.org
MIT License
808 stars 28 forks source link

VNWindow plans #5

Open gregpalaci opened 4 years ago

gregpalaci commented 4 years ago

Sorry to bother again I wanted to clarify I was reading https://github.com/nodegui/vue-nodegui/blob/master/src/widgets/Window/VNWindow.ts is there plans / needed help to port all the functions of QMainWindow in the future. It says right now "You would not be using this widget in your app." I'm making use of it with the react nodegui (for fun) to create systemtray icons, detect the close event, set the title etc. Happy to try helping with porting the functionality but I'm a bit new to TypeScript.

shubhamzanwar commented 4 years ago

Currently, the renderer automatically creates the window and renders the app inside that window. To make it more like react-nodegui (allowing systemtray icons, etc) we would need to implement more props for the VNWindow widget. Once that's done, the user will be able to use <vn-window> as a component in their code.

If you're interested in trying to implement, you can take a look at the other widgets as an example (VNView or VNText) 🙂