Forums

OverviewFelgo 2 Support (Qt 5) › Android statusbar style

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23465

    Dmitry

    Hi!

    How to change android statusbar color?

    I have an almost white background in theme, and also white navigationbar. As I see, statusbar background has the same color as a navigationbar(my statusbar seems to be transparent, xiaomi miui 11), but I want to make it a bit darker, or somehow tell android to change statusbar`s elements color to black.

    There is a Java method with qtextras, but maybe I`m missing (or messing) ) something in Themes?

    #23492

    Alex
    Felgo Team

    Hi,

    you can configure the status-bar with the statusBarStyle setting of Theme.colors.

    Eg.

    App {
    
      onInitTheme: {
        Theme.colors.statusBarStyle = Theme.colors.statusBarStyleBlack
      }
    
    }

    Best,
    Alex

    #23495

    Dmitry

    But…

    statusBarStyleBlack: Display a black status bar for light content on iOS. Android displays a Material-themed translucent status bar. This is the default.

     

    And in liveclient on android it stays translucent, with white items. At least for me.

    With statusBarStyleSystem I`ve got a fullscreen app with  white-on-black statusbar, it covers navigationbar a bit.

     

    As a dirty workaround, I`m using now:

        App
        {
          //
          // All my app contents here, so rectangle is on top of it
          //
        Rectangle {
          width: parent.width
          height: nativeUtils.statusBarHeight()
          color: "gray"
          visible: Theme.isAndroid
          }
        }
    

     

    But I can`t get “black items on translucent” statusbar.

    #23504

    Alex
    Felgo Team
Viewing 4 posts - 1 through 4 (of 4 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