Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28211

iOS: The color property of Ti.UI.Button does not work when used in navbar

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Release 9.3.0
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      Mac OS: 10.15.4
      SDK: 9.2.1.GA
      Appc CLI: 8.1.1
      JDK: 11.0.4
      Node: 10.17.0
      Studio: 6.0.0.202005141803
      Xcode: 12.0.1

    • Story Points:
      5
    • Sprint:
      2020 Sprint 22, 2020 Sprint 23

      Description

      When a button is used in window for leftNavBar or rightNavBar, the color property does not work.

      Steps to Reproduce:
      1. Create a titanium mobile app using the code below
      2. Run on iOS device/sim
      3. On the Red Window, click on the button "Open Blue Window"
      4. Check the Left and Right navbar buttons in the blue window

      Actual Result:
      These buttons show the blue text color instead of the color assigned.

      Expected Result:
      The buttons used in navbar should show the text color assigned as color property.

      var win2 = Titanium.UI.createWindow({
          backgroundColor: 'red',
          title: 'Red Window'
      });
       
      var win1 = Titanium.UI.createNavigationWindow({
          window: win2
      });
      var lnv = Titanium.UI.createButton({
          title: 'Left',
          color: 'yellow'
      });
      lnv.addEventListener('click', function(){
          win1.closeWindow(win3, {animated:false}); 
      });
      var rightView = Ti.UI.createView();
      var rnv = Titanium.UI.createButton({
          title: 'Right',
          color:'red'
      });
      rnv.addEventListener('click', function(){
          win1.closeWindow(win3, {animated:false}); 
      });
      var win3 = Titanium.UI.createWindow({
          backgroundColor: 'blue',
          title: 'Blue Window',
          leftNavButton:lnv,
          rightNavButton:rnv 
      });
       
      var button = Titanium.UI.createButton({
          title: 'Open Blue Window',
          color: 'black'
      });
      button.addEventListener('click', function(){
          win1.openWindow(win3, {animated:true});
      });
       
      win2.add(button);
      var button2 = Titanium.UI.createButton({
          title: 'Close Blue Window'
      });
      button2.addEventListener('click', function(){
          win1.closeWindow(win3, {animated:false});
      });
       
      win3.add(button2);
      win1.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              ssekhri Satyam Sekhri
              Reviewer:
              Christopher Williams
              Tester:
              Satyam Sekhri
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration