Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19063] Windows: default background color of sample apps

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 4.1.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeUnknown
Created2015-06-23T08:53:07.000+0000
Updated2018-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

FileDateSize
Windows_8_1.png2015-06-23T08:50:12.000+000044002

Comments

  1. Christopher Williams 2015-06-23

    Bumping out to 4.1.1 as it's lower priority.

JSON Source