Skip to content

Derive QPalette from current Blender theme#170

Open
manuelkoester wants to merge 4 commits into
techartorg:masterfrom
manuelkoester:feature/derive_qt_palette
Open

Derive QPalette from current Blender theme#170
manuelkoester wants to merge 4 commits into
techartorg:masterfrom
manuelkoester:feature/derive_qt_palette

Conversation

@manuelkoester

Copy link
Copy Markdown

This is the MR for #169 . Should also close #79

This moves away from the current static stylesheet approach to read Blender theme colors and apply them to a QPalette on the QApp. All child windows will then inherit from it and it all falls nicely into place hehe

Very heavily inspired by/ported from https://github.com/minimalefforttech/blender_qt/tree/main/blender_qt/theme

For now this MR is mainly for demonstration and I assume there would need to be done some additional changes.

Example screenshot with the https://extensions.blender.org/themes/catppucin4blender/ theme
image

Please give it a squeeze and let me know what you think!

@manuelkoester

Copy link
Copy Markdown
Author

We deployed this to production a bit ago and I'm happy to say that it works really well. Can't really show our UIs, but here is the spyder CodeEditor with https://extensions.blender.org/themes/midnight-blue-theme/
image

Really not the best example, but it's what came to my mind 😄

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.

dynamically support blender themes in the qt stylesheet

1 participant