Skip to content

Conversation

@m1ga
Copy link
Contributor

@m1ga m1ga commented Jul 28, 2024

If you don't set titleAttributes at window creation and try to set it after that it won't set the color:

var win = Titanium.UI.createWindow({
	barColor: "pink",
	backgroundColor: "white",
	title: 'foo',
});


win.addEventListener("click", function() {
	win.titleAttributes = {
		color: "yellow"
	}
	win.title = "test"
})
win.open();

Test

  • run the code
  • click the window
  • title and color should change

@hansemannn hansemannn merged commit 017c052 into master Aug 20, 2024
@m1ga m1ga deleted the androidTitleAttribute branch November 11, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants