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

Support for libadwaita? #52

Open
Its-Kenta opened this issue Jul 30, 2023 · 4 comments
Open

Support for libadwaita? #52

Its-Kenta opened this issue Jul 30, 2023 · 4 comments

Comments

@Its-Kenta
Copy link

Is there any chance to add support for libadwaita on Linux? Or would that go beyond the vision of this project?

@stackotter
Copy link
Owner

I'd be happy to add support for libadwaita, the eventual aim is to have quite a few other backends other than Gtk, so libadwaita is well within the scope of this project. Someone else asked about this a while ago and I think they said that I would really only have to add one line to the project to enable libadwaita support on Linux? Would you also want certain libadwaita widgets to replace the Gtk ones? (I've never used libadwaita before, so I don't really know anything about it)

@JCWasmx86
Copy link

Adding basic Libadwaita support is basically using adw_application_new instead of gtk_application_new. This uses at least the Libadwaita stylesheet, so it looks more like the other GNOME apps. The other widgets are more complementary and help following the GNOME HIG.

@Its-Kenta
Copy link
Author

Was about to add my take on it but @JCWasmx86 beat me to it :)

@stackotter
Copy link
Owner

Adding basic Libadwaita support is basically using adw_application_new instead of gtk_application_new. This uses at least the Libadwaita stylesheet, so it looks more like the other GNOME apps. The other widgets are more complementary and help following the GNOME HIG.

Ok sounds good. For now I might make some way for people to select that they want to use adwaita on Linux, and just use that to decide how the application is created. Eventually I reckon I’ll probably make it a ‘separate’ backend option where the basic widgets are updated to use Adwaita’s widgets (if there are drop-in replacements). Any auxiliary adwaita widgets that don’t fit into the SwiftUI API can probably be vended as a separate target or package providing specific adwaita support for those who don’t want to be as cross platform (or are happy to put a bit more effort into being so).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants