Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › HOW TO change the color of AppTabBar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15518

    Francois

    Hi,

    sorry for the stupid question: how to change the color of AppTabBar ?

     

    Thank you for your help.

     

    Best Regards.

    F.

    #15521

    G├╝nther
    Felgo Team

    Hi Francois!

    Not stupid at all ­čśë

    The AppTabBar uses the colors from the app Theme, see here for a list of available configurations.

    To change theme settings, simply use the onInitTheme signal of the app:

    App {
    
    onInitTheme: {
      Theme.tabBar.backgroundColor = "green"
    }
    
    }

    The default value uses the configured Theme.colors.tintColor, so you can also change the tint-color in case you also want the same color for e.g. buttons or the navigation bar.

    Cheers,
    G├╝nther

     

    #15523

    Francois

    Hi G├╝nther,

     

    Thanks for the tips. This is exactly what I’m looking for….

     

    Best Regards.

    F.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.