Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6151] Label shadow - blur and opacity properties

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
Labelsn/a
ReporterSindre Sorhus
AssigneeIngo Muschenetz
Created2011-10-30T13:45:23.000+0000
Updated2014-06-18T22:53:54.000+0000

Description

Ti.UI.Label has the properties shadowColor and shadowOffset. It would be nice if it also supported setting the blur and opacity of the shadow. This is useful when you don't want that hard shadow you get by just setting color and offset. It could instead be a label.shadow property, that takes an object as an argument:
var label = Ti.UI.createLabel({
	shadow: {
		color: '#000',
		offset: {
			x: 0,
			y: 1
		},
		opacity: 0.4,
		blur: 2
	}
});

Comments

No comments

JSON Source