How can i change Android Status bar color in Qt Qtuick Controls 2? (Material Design)
-
wrote on 11 Jan 2017, 13:22 last edited by
-
Dear guys
How can i change color of Android Status bar in Qt Quick Controls 2.1 in Material Design?
Thanks@Advanced Probably you can't. Isn't Android Status Bar handled by the OS (Android)? Maybe there is a way to do it using Android Java API?
-
wrote on 11 Jan 2017, 14:17 last edited by
Actually, i've found the sample like this
[https://github.com/jpnurmi/statusbar](link url)
But unfortunately, in Qt 5.7.1 we this code we have a new problem, one white border line exist at the top of the toolbar and right of it.
-
wrote on 12 Jan 2017, 08:56 last edited by
Hi!
You can also have a look at V-Play Apps engine, which allows to change the tint color for the navigation- and status-bar from within QML.For example like this:
import VPlayApps 1.0 App { // change the tint onInitTheme: { Theme.colors.tintColor = "green" } // empty page with navigation bar NavigationStack { Page { title: "Dummy Page" } } }
Cheers,
Günther -
wrote on 12 Jan 2017, 21:41 last edited by
Actually, I've found this problem is in My Nexus 6 with android 7 and when i rotate device, it's fixed.
So, it's useful link
https://github.com/jpnurmi/statusbarif you have nexus device please test it
Thanks guys
3/5