Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Add styling support #1

Closed
stackotter opened this issue Mar 20, 2022 · 1 comment
Closed

Add styling support #1

stackotter opened this issue Mar 20, 2022 · 1 comment

Comments

@stackotter
Copy link
Owner

Currently SwiftGtk doesn't provide a Swift-y way to style widgets. To support styling, SwiftGtk needs to wrap Gtk's css-based styling API.

The main Gtk functions that would need to be wrapped are css_provider.load_from_data, gtk_style_context_add_class, gtk_widget_get_style_context. There may be others that I have missed.

@stackotter
Copy link
Owner Author

I've implemented a basic way to style elements which can be expanded on in future. Further development of SwiftGtk will be happening in the SwiftCrossUI repo.

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

No branches or pull requests

1 participant