I'm using cmake and following the instructions per Elementary OS site (https://elementary.io/docs/code/getting-started#building-and-installing-with-cmake).
Everything looks good when compiling the app, but when building and installing the app the styles are missing. Perhaps I'm missing a step? Here's my code:
var css_provider = new Gtk.CssProvider();
try {
css_provider.load_from_path("style.css");
} catch (GLib.Error e) {
stderr.printf("%s", e.message);
}
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), css_provider, Gtk.STYLE_PROVIDER_PRIORITY_USER);