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

expose highlight color #10

Closed

Conversation

JanoschMenke
Copy link
Contributor

self._drawColor and self.colorDict have been added as attributes to molViewWidget

The colorDict is a Dict["name": Tuple(R,G,B)]
The "default" rdkit color is (1.0, 0.5, 0.5) is also set here as default.

Users can assign colorDict alternative colors
And by setting the drawColor can change how the molecules are highlighted.

The last selected atom is also highlighted a little brighter (by a fifth to be precise)

self._drawColor and self.colorDict have been adding as attributes to MolViewWidget

The colorDict is a Dict["name": Tuple(R,G,B)]
The "default" rdkit color is (1.0,0.5, 0.5) is also set here as defaul.

Users can assign colorDict alternative colors
And by setting the drawColor can change how the molecules are highlighted.

The last highlighted atom is also highlight a little brighter (by a fifth to be precies)
@EBjerrum
Copy link
Owner

It's duplicate functionality with the changes that are in the extended_features branch. I don't think the viewWidget should use the dictionary to set the colour, it should be more "dumb" and direct. I.e. if I want to make a viewWidget and set the colour, it should simply be doable by setting one setting, not a dictionary and a setting. The lookup in a dictionary of settings can be controlled from other classes, i.e. if one wants synchronized changes between highlight and last_highligt.

@JanoschMenke
Copy link
Contributor Author

Yes I can see the issue. I will just work with your branch

@JanoschMenke JanoschMenke deleted the expose_highlight_color branch April 19, 2024 09:09
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.

None yet

2 participants