-
Notifications
You must be signed in to change notification settings - Fork 15
Various improvements for TitleColorMatch #32
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
base: web-ui
Are you sure you want to change the base?
Conversation
azuravian/TitleColorMatch.py
Outdated
| stroke_color = 'black' if luminance > 50 else 'white' | ||
| else: | ||
| title_color = self.TITLE_COLOR | ||
| stroke_color = 'black' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
|
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. |
Other cards use this variable. Changing for consistency
Shows without logos will still have the rest of the card applied.
This should probably have the font_color set to
autoby default since that's the main appeal of using this over GradientLogoTitleCard.