{ "id": "119373", "key": "TIMOB-15025", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15646", "description": "2013 Sprint 18", "name": "2013 Sprint 18", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "id": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15696", "description": "2013 Sprint 20 API", "name": "2013 Sprint 20 API", "archived": true, "released": true, "releaseDate": "2013-10-04" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-10-04T17:07:29.000+0000", "created": "2013-09-02T17:15:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ipass1", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T20:25:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Problem description\r\nWhen a dark background is used, the hint text does not show up in a text field.\r\n\r\nh2. Code to reproduce\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"black\"\r\n});\r\n\r\nvar text = Ti.UI.createTextField({\r\n\twidth : 280,\r\n\theight : 60,\r\n\ttop : 50,\r\n\tleft : 20,\r\n\tcolor : \"blue\",\r\n\tfont : {\r\n\t\tfontSize : 30,\r\n\t},\r\n\tbackgroundColor : 'transparent',\r\n\thintText : \"HINT TEXT\"\r\n});\r\nwin.add(text);\r\nwin.open();\r\n{code}\r\n\r\nh2. Notes\r\nChange the window background color to 'white' and the hintText will be visible in gray color. Same error happens changing the backgroundColor of the text field.", "attachment": [ { "id": "42078", "filename": "iOS Simulator Screen shot 3 Sep 2013 17.58.04.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-03T16:59:24.000+0000", "size": 11044, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: hintText becomes invisible on dark background", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.1.3.v20130902103448\r\niOS 7 beta 6\r\nXCode 5 DP6", "comment": { "comments": [ { "id": "269295", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Tested with today's 3.1.3 and latest Xcode. The sample shows a total black window. See screenshot (yes, it is total black). The hint text is invisible, but you can click on the text field and write inside.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-03T16:59:24.000+0000", "updated": "2013-09-03T16:59:24.000+0000" }, { "id": "269631", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving this as not our bug.\r\n\r\nApple has changed the color of the hint text label on IOS7 so it is now closer to black (hence almost invisible)\r\n\r\nOn older versions of IOS the hintTextColor is UIDeviceWhiteColorSpace 0.7 1 (gray with 70% opacity). On IOS7 it is UIDeviceRGBColorSpace 0 0 0.0980392 0.22 (Read RGBA. Alpha 0.22). Can't fix this since we have no API's to change this labels properties.\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-04T23:18:09.000+0000", "updated": "2013-09-04T23:18:09.000+0000" }, { "id": "270856", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We do not call internal API's in our SDK. Two reasons\r\n1. The app might be rejected\r\n2. The solution may stop working at any time.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-12T15:49:14.000+0000", "updated": "2013-09-12T15:49:14.000+0000" }, { "id": "271929", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "What about something like this?\r\n~~~\r\n[[UILabel appearanceWhenContainedIn:[UITextField class], nil] setTextColor:[UIColor yellowColor]];\r\n~~~\r\n\r\nand of course to be able to pass a *hintColor* param for the setTextColor ?", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-19T16:52:07.000+0000", "updated": "2013-09-19T16:52:07.000+0000" }, { "id": "273814", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking this as invalid. TIMOB-14235 will provide the ability to set an attributed string for hintText.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-04T17:07:29.000+0000", "updated": "2013-10-04T17:07:29.000+0000" }, { "id": "416036", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T20:25:12.000+0000", "updated": "2017-03-28T20:25:12.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }