Playnite Forums
Use color from brush - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Development (https://playnite.link/forum/forum-10.html)
+--- Forum: Themes (https://playnite.link/forum/forum-9.html)
+--- Thread: Use color from brush (/thread-483.html)



Use color from brush - eminaguil - 11-24-2020

Is there a way or a converter for extract the color from a solid bush or the first color from a gradient brush? 
I want to use the TextBrush and GliphBrush colors in the game descriptions for the html color and link color; and the TextColorDarker for shadows.


RE: Use color from brush - Crow - 11-24-2020

What would you generally do is to create brush using color constants and then reuse those constants in other places where you don't need the whole brush.


RE: Use color from brush - eminaguil - 11-25-2020

(11-24-2020, 04:46 PM)Crow Wrote: What would you generally do is to create brush using color constants and then reuse those constants in other places where you don't need the whole brush.

Yes, and that is what I actually do, but when using ThemeModifier it change brushes, what give us more options, like the gradients. And I what to do is use the color from these, so if there is a change, it won't affect the look in those cases when a brush can't be used.


RE: Use color from brush - Crow - 11-25-2020

I don't provide support for things like ThemeModifier, you have to ask its author for support.