Skip to content
Discussion options

You must be logged in to vote

Looks like you attached the same code snippet under both "Color Picker Construction" and "Update color callback" 😂.

Anyway... I bet that when you try to use themes, the area series remain transparent no matter what color you specify in the theme - correct? If so, here are some bad news for you: area series uses the fill color specified in add_area_series (defaults to transparent) and does not use the fill color from the theme at all. That is, the only way to recolor them is to do configure_item on each one. You can wrap that in with dpg.mutex(): to prevent rendering with half the image recolored and half in the old color:

with dpg.mutex():
    for area in self.series['areas']:
        dpg.c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MediumSolid
Comment options

Answer selected by MediumSolid
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants