Skip to content

Conversation

@buthed010203
Copy link

  • Black logos will now have their color inverted so that they're readable on the black gradient
  • Cleaned up some code

This should probably have the font_color set to auto by default since that's the main appeal of using this over GradientLogoTitleCard.

stroke_color = 'black' if luminance > 50 else 'white'
else:
title_color = self.TITLE_COLOR
stroke_color = 'black'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this earlier and now I'm even more certain that there should probably be a STROKE_COLOR var thats used here

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would the variable be for?

@buthed010203 buthed010203 marked this pull request as draft July 9, 2023 21:25
@buthed010203
Copy link
Author

buthed010203 commented Jul 9, 2023

I need to nail down a better minimum luminosity still (perhaps it would be a good idea to add a color difference calculation too?). Also some of the code returns on the first loop of the luminosity check every time even if its too low, I will fix that.

@buthed010203 buthed010203 marked this pull request as ready for review July 9, 2023 23:59
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.

2 participants