Gkt4 + Adwaita

slawtul slawek.tuleja at gmail.com
Thu Feb 23 09:51:34 UTC 2023


Hi guys,
Was anyone here trying to marry dlang, gtk4 and adwaita lib?
Do you have some examples?

In C++ it's easy - however I would like to use D lang obviously


```
#include <adwaita.h>
#include <gtkmm.h>
#include <ui/include/Window.h>

int main(int argc, char *argv[]) {
   auto app = Gtk::Application::create("my.app");
   
adw_style_manager_set_color_scheme(adw_style_manager_get_default(),
                                      
ADW_COLOR_SCHEME_PREFER_LIGHT);
   return app->make_window_and_run<Window>(argc, argv);
}
```


More information about the Digitalmars-d mailing list