Skip to content
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

Feature Request: Text Shadow? #190

Open
shelbyKiraM opened this issue Dec 25, 2023 · 1 comment
Open

Feature Request: Text Shadow? #190

shelbyKiraM opened this issue Dec 25, 2023 · 1 comment

Comments

@shelbyKiraM
Copy link

Using light text colour on not-flat colour background tends sometimes to hide the numbers. May we have the ability to add a text shadow? See what I mean on temp , times & such:
image

@shelbyKiraM
Copy link
Author

shelbyKiraM commented Dec 28, 2023

I adjusted the layout & added a shadow in weather-cal-code.js myself; that'll do.
IMG_5386
From the comment on my own widget version:

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*\
             == ¡Shelby Kira Marvell! ==           
   Add this to weather-cal-code.js after update.   
 (with a line of code already from "provideText"): */

		textItem.textColor = this.provideColor(format)
		const SHADOW = {
			shadowColor: new Color('#000000'),
			shadowRadius: 2.5,
			shadowOffset: new Point(1.5,1.5)
		}
		textItem.shadowColor = SHADOW.shadowColor
		textItem.shadowRadius = SHADOW.shadowRadius
		textItem.shadowOffset = SHADOW.shadowOffset
/*
\*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

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

No branches or pull requests

1 participant