[TIMOB-19063] Windows: default background color of sample apps
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 4.1.0 |
| Fix Version/s | n/a |
| Components | Windows |
| Labels | n/a |
| Reporter | Kota Iguchi |
| Assignee | Unknown |
| Created | 2015-06-23T08:53:07.000+0000 |
| Updated | 2018-02-28T19:55:38.000+0000 |
Description
On Windows Phone, background color of components tend to be transparent, and the text color tend to be set white.This causes confusion when Window color is white, because some components like
Label and Button looks disappear. The issue is that some sample apps from Appcelerator tend to have white background color by default, which might be looking good with iOS. But on Windows Phone we need to make it black or something other than white.
So make sure sample app does not have white background:
var isWindows = (Ti.Platform.osname === "windowsphone" || Ti.Platform.osname === "windowsstore");
var window = Ti.UI.createWindow({
title: 'Todo',
backgroundColor: isWindows ? '#000' : '#fff',
navBarHidden: false,
});
Attachments
| File | Date | Size |
|---|---|---|
| Windows_8_1.png | 2015-06-23T08:50:12.000+0000 | 44002 |
Bumping out to 4.1.1 as it's lower priority.