Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25470] tintColor hex value only works without '#' on iOS simulator

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2018-06-12T06:40:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsiphone
ReporterILAY SENER
AssigneeVijay Singh
Created2017-10-27T02:35:35.000+0000
Updated2018-08-06T17:41:06.000+0000

Description

tintColor works with the hex value only, without the '#'...
var win = Ti.UI.createWindow({ backgroundColor: "olive", layout: "vertical", id: "index" });

var img1 = Ti.UI.createImageView({ id: "img", image: "/images/ic_assignment_white_48.png", top: "40%", tintColor: "#ffa500" });
var img2 = Ti.UI.createImageView({ id: "img2", image: "/images/ic_assignment_white_48.png", tintColor: "ffa500" });

win.add(img1);
win.add(img2);

win.open();
To replicate, create a basic alloy app. Replace code in index.xml and index.js with below, respectively: INDEX.XML ---------------- INDEX.JS ------------ $.index.open(); $.img3.tintColor= '#ffa500'; $.img4.tintColor= 'ffa500';

Attachments

FileDateSize
Screen Shot 2017-10-27 at 1.35.16 pm.png2017-10-27T02:35:35.000+000048689

Comments

  1. Vijay Singh 2018-06-12

    This issue is not due to '#'. It is due to position of image view. This is fixed as part of TIMOB-25201in 7.1.0. [~isener] Can you please verify it in SDK >=7.1.0. Thanks!
  2. ILAY SENER 2018-06-12

    [~vijaysingh], thank you for the fix, but I can't really test this any longer as this case was created 9 months ago...
  3. Eric Merriman 2018-08-06

    Closing as a duplicate. If this is in error, please reopen.

JSON Source