Skip to content

Conversation

@Neagiry
Copy link

@Neagiry Neagiry commented Jul 17, 2025

No description provided.

@Neagiry
Copy link
Author

Neagiry commented Jul 17, 2025

I wanted to contribute to App Generator, but got it mixed up. Well, I don't think it will be difficult for you to fix that :)

}

construct {
var provider = new Gtk.CssProvider ();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You actually don't need to do this step at all anymore. Granite automatically loads gresourced stylesheets called "Application.css"

construct {
var provider = new Gtk.CssProvider ();
provider.load_from_resource ("/io/github/yourusername/yourrepositoryname/Application.css");
add_css_class (provider.to_string());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not do what you think it does 😅 you'd just get a probably invalid super long css class name. This won't load any styles

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants