Forums

OverviewFelgo 2 Support (Qt 5) › color of AppTabBar in iOS Theme

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

    Marek

    Hi

    I have AppTabBar witch AppTabButton which is set translucency:1

    I can customize colors of the buttons and text on Android with theme

    Theme.tabBar.subTabTitleColor="#800000"
    Theme.tabBar.markerColor="#800000"
    Theme.tabBar.dividerColor="#800000"
    Theme.tabBar.backgroundColor="#800000"
    Theme.tabBar.subTabTitleOffColor="white"

    However, when I switch to iOS theme this AppTabBar is always with blue border around buttons and blue background for selected tab no matter what I set. I checked Theme.colors and can’t make it eg. green like with example doc https://felgo.com/doc/vplayapps-apptabbar/

     

    Also is this possible to force Android style AppTabBar on iOS or Dekstop platform (like with navigationMode: navigationModeDrawer)

    Best Regards

    Marek

    #18586

    Günther
    Felgo Team

    Hi Marek,

    in addition to the theme settings you already apply, the tab bar also uses the Theme.tintColor setting to match the app’s color theme, which is blue by default on iOS.

    You can e.g. change the tint to green with this code:

        Theme.colors.tintColor = "green"
    

    If you like to use the same styling on both iOS and Android, you can manually activate the Android theme with:

    Theme.platform = "android"

    This will apply the Android theme to the whole application. Switching the Theme only for the tabs is not supported.

    Hope this helps!

    Best,
    Günther

    #18594

    Marek

    Hi

    Ok, I know what was the problem.

    I’m setting different colors in Main.qml onInitTheme:

    But if I make some mistake like: Theme.normalFont=”Lato” in onInitTheme the rest of the block is not read by the application.

     

    Best Regards

    Marek

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

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support