Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1415] Unable to Set Text Shadow on Button Text

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-05-01T22:48:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsbutton, feature, ios, properties, text
ReporterRalf Pfeiffer
AssigneeIngo Muschenetz
Created2011-04-15T02:51:44.000+0000
Updated2017-05-31T22:41:42.000+0000

Description

Buttons can be customized in a variety of ways, including repeatable backgrounds, text color, etc. But the text label's shadow declarations cannot be set.

This is an important aesthetic element when designing buttons that fit within the iPhone's visual framework.

Example:

var button = Titanium.UI.createButton({
title: 'Submit', width:100, height:30, backgroundImage:'images/button-background.png', textAlign:'center', color:'#666', shadowColor:'#FFF', shadowOffset:{x:0,y:1} });

shadowColor and shadowOffset should somehow be available for text and the button itself.

Thanks!

Comments

  1. James Wragg 2011-04-15

    Would love this too - at the moment I have to create a label and add it to the button. This is currently broken in 1.5.0 if there is a background image on the button.

  2. James Wragg 2011-04-15

    See ticket #2423

  3. Stephen Tramer 2011-04-15

    Low-priority feature. Can be accomplished by placing a label on the button.

  4. Lee Morris 2017-05-01

    Resolving ticket as Invalid as there is hardly any information whatsoever and this was created in April 2011 with no response since that time.

JSON Source