News for hackers. Stuff that matters.
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by boromi on Friday March 05, 2021 @03:39PM (#26361785)
Any Win 10 fluent examples? Perhaps WinUI integation?
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by LinguaBrowse on Friday March 05, 2021 @03:51PM (#26361922)
The parent project, NodeGUI, has some Windows screenshots and examples – I’m not familiar enough with Fluent or WinUI, but basically the UI runtime is Qt5, so integrating it into genuine Windows apps is out of scope (but may well be possible with the right expertise). I assume it would involve some kind of Qt-hosting view. I’m unsure whether Qt5 can host Windows UI components.

Edit: NodeGUI here: https://github.com/nodegui/nodegui

Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by ComputerGuru on Friday March 05, 2021 @03:55PM (#26361978)
WinUI 3 improves the ability to embed fluent UI “xaml islands” in Win32 apps (like Qt processes) but it’s extremely convoluted and requires a lot of boilerplate (that I believe Qt could theoretically abstract over being at a high-enough level).
Re:Show HN: Svelte NodeGUI, a lightweight Electron alternati... by jcelerier on Saturday March 06, 2021 @05:18AM (#26366478)
> I’m unsure whether Qt5 can host Windows UI components.

yep, basically you have to do :

    auto window = QWindow::fromWinId(reinterpret_cast<WId>(/* HWND, NSView, X11 buffer, Wayland surface... /*));
    auto widget = QWidget::createWindowContainer(window);
and then you can use the widget like any other Qt widget, put it in a layout, etc... (of course caveats may apply when you start doing transparency or other fun things).