Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded