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

Theming #111

Open
Ralith opened this issue Oct 23, 2023 · 0 comments
Open

Theming #111

Ralith opened this issue Oct 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Ralith
Copy link
Collaborator

Ralith commented Oct 23, 2023

I'm sure this is already on a list somewhere, but for visibility:

Theming allows applications to define a style once and apply it to large numbers of widgets without having to modify pre-existing widget definitions, or even instantiations. Theme information is hence a good candidate for thread-local state or similar, allowing it to be fetched during widget construction without laborious propagation.

Prior art:

  • CSS (hopefully this level of complexity is avoidable)
  • Qt's QPalette, in particular the suite of named QBrushes it exposes
  • Whatever reasoning motivated Gtk to abandon useful theming support
  • Do Flutter and/or SwiftUI do anything interesting here?
@LPGhatguy LPGhatguy added the enhancement New feature or request label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants