-
-
Notifications
You must be signed in to change notification settings - Fork 679
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
Implement Zones inheriting colors from parent Zones as an option. #885
Conversation
Closes #884 |
Fixed the capitalization in the screenshot: |
I would name it "Inherit parent colors". I would also rename One more thought: the zone timeline drawing routines are already passing through all the parents. Maybe it would be simpler to just pass the user zone color down to children right there, so that no parent lookup is needed at all? |
I could do that, but that would require adding a
Will do. |
The amount of timeline items to draw turns out to be surprisingly low, so it's not a concern. |
It's more annoying to implement than I expected. The utility function |
Just change it to |
Done 😄 |
I forgot that zone colors may come from two different sources, so I took a deep dive to understand the code and b359936 is the result. Please take a look if everything there works as you'd expect. |
You introduced a bug somehow, I believe. Neighboring zones adopt the color as well, randomly: The zone pointed at does not have any color. Fix in #886 . |
Option for coloring zones without custom color by inheriting it from a parent that has a custom color. If inherited, the color is made slightly darker to distinguish the "sources" of the colors and the ones inheriting from each other.
Option saved to ini file.
Performance considerations:
alloca()
'dScreenshot without:
With: