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

global styling support #442

Open
michi42 opened this issue Dec 19, 2024 · 0 comments
Open

global styling support #442

michi42 opened this issue Dec 19, 2024 · 0 comments

Comments

@michi42
Copy link

michi42 commented Dec 19, 2024

While the current look and feel of NodeGraphQt looks really good in a dark theme application, it feels like a foreign object in a light theme application.

Of course ideally one would inherit the style from the OS (#252) but for the time being, already being able to the default colors programmatically before creating a graph would be very useful. Unfortunately currently the defaults are a bit scattered among enums in constants and hard-coded constants in the qgraphics modules ... some of which can be customized per-instance and some can not (e.g. highlighted pipe colors) which makes it impossible to define a consistent custom color theme without monkey patching.

As a first step, it would be great if all color/them constants could be moved to a common place which could be overridden by the application, e.g. a Theme. Later this could possibly be constructed from QPalette to inherit the system theme...

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

No branches or pull requests

1 participant