[Feature request] Background quote color should be chameleon-like
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Variety |
New
|
Wishlist
|
Unassigned |
Bug Description
Hi,
Love the new quote and clock features of variety! I would just make one request. Please make it possible for the quote background color to take on the average background color (desaturated a bit) so that on very colorful backgrounds it isn't so contrasting. Here's a bit of code I've used to do it:
def get_color (self):
"""Code modified from Ambiance Chameleon - THANKS! """
try:
rgb_set = re.match(
return [int(rgb_set[0]), int(rgb_set[1]), int(rgb_set[2])]
except:
return [0,0,0]
Then I set the background and font color like so (color scaling for my purposes is 0.5-0.7):
if sum(self.BG_rgb)/3 > 175:
else:
Quotes are drawn on the wallpaper image before it is set as a wallpaper, so I'll have to use another approach for calculating the color. When I have the time I'll play with this idea to see if I can get anything better than simply using dark gray as the backdrop (which is the current default and I think it works great for almost all images, except for very contrasting ones, where there is simply no good way to draw good looking text on top). The downside is this would be more CPU time for a relatively minor difference.
But this is definitely low priority for now - the quotes have already eaten quite a lot of time and they are not THAT central to Variety after all...