Closed m1ga closed 11 months ago
Parity for titleAttribues: {color}.
titleAttribues: {color}
iOS allows you to quickly set the window title color with titleAttributes: { color: #fff}. It has more options but for now I only added color to Android.
titleAttributes: { color: #fff}
var win = Titanium.UI.createWindow({ barColor: "pink", backgroundColor: "white", title: 'Autos', titleAttributes: { top: 0, color: "blue", }, }); win.addEventListener("click", function() { win.titleAttributes = { color: "yellow" } }) win.open();
Same but with a navigation window setup:
var win = Titanium.UI.createWindow({ barColor: "pink", backgroundColor: "white", title: 'Autos', titleAttributes: { top: 0, color: "blue", }, }); var navWin = Titanium.UI.createNavigationWindow({ window: win, }); win.addEventListener("click", function() { win.titleAttributes = { color: "yellow" } }) navWin.open();
Currently you have to either add a custom toolbar/actionbar or use a theme
<style name="MyTheme" parent="Theme.Titanium.DayNight"> <item name="toolbarStyle">@style/Widget.App.Toolbar</item> </style> <style name="Widget.App.Toolbar" parent="Widget.MaterialComponents.Toolbar.Primary"> <item name="titleTextColor">#ffffff</item> <item name="android:background">#ff00ff</item> </style>
Parity for
titleAttribues: {color}
.iOS allows you to quickly set the window title color with
titleAttributes: { color: #fff}
. It has more options but for now I only added color to Android.Test 1:
Test 2:
Same but with a navigation window setup:
Workaround
Currently you have to either add a custom toolbar/actionbar or use a theme