Skip to content

Discussion: Switch from Stylesheet to QPalette & read colors from Blender's theme #169

Description

@manuelkoester

Hey!

As it is now very easy to download & install Themes for Blender (https://extensions.blender.org/themes/), maybe it would be worth switching bqt to use an approach similar to what is being done in blender_qt for the style: https://github.com/minimalefforttech/blender_qt/blob/main/blender_qt/theme/builder.py#L168

I have a working demo locally for our own internal plugin that does something like this. If you think this is of interest I could spend a bit of time porting that to be a bqt feature?

Below is a screenshot of our approach with https://extensions.blender.org/themes/catppucin4blender/

Image

This is only using QPalette though, so the approach would be quite different from setting the stylesheet, like it is now?

I tested this approach with couple of our UIs and it consistently looked better, even with the default theme

What do you think? Any unwanted implications of this approach?

Cheers and thanks as always ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions