-
Notifications
You must be signed in to change notification settings - Fork 19
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
An option to set text shadow of a specific color #88
Comments
Hi, any update on this? Having the shadows would help a lot! |
Hi @Akselmo! Thank you for asking :-)
|
I know that Breezy Weather has text shadows in their widgets: https://github.com/breezy-weather/breezy-weather Maybe they have something you could look into? I don't know anything really about Android dev myself. |
@Akselmo Thank you for the link: I do see that the Breezy-Weather widget uses text shadow actively. But all that shadows are configured statically, in XML (theme) files. As I read earlier. Our widget app consists of about 13 layout files. No shadows defined in them. But maybe it's worth to have at least black and white shadows only?! |
I see, again I don't know much about Android dev so this is just a thought: Could the shadow be just same text, but slightly offset and always behind the real text? Then expose the color setting for this text too. It would mean duplicated text, so it's not possibly ideal, but it would work as a shadow. |
I think this will cause unexpected effects due to differences in text wrapping to the next line... |
Yeah I would be fine with either black or white shadow, depending on the text color. I guess it could be calculated with something like this: https://www.accessibility-developer-guide.com/knowledge/colours-and-contrast/how-to-calculate/#the-formula So compare text color to black shadow color, and if ratio is too low, set the shadow color to white. edit: Personally I use only white text so black shadow would be fine for my usecase. |
Yeah that works perfectly for me! Thank you! |
…No shadow" (default, nothing changes for existing widgets), "Dark shadow" and "Light shadow". For simplicity the same shadow applies to all parts of the widget.
@Akselmo Please check, I published v.4.9.0 https://github.com/andstatus/todoagenda/releases/tag/4.9.0-release |
Yep this works great, thanks! |
Initial User's request was:
Related topic: setting Text color (implemented): #47
The text was updated successfully, but these errors were encountered: