question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set navigationBar theme and statusBar theme not working anymore

See original GitHub issue

Change the navigationBar or statusBar theme no longer works

const{statusBar, navigationBar, Button, contentView} = require("tabris");
 statusBar.theme = 'light';
 navigationBar.theme = "light";

 new Button({centerY:0, centerX:0, text:"click me", background:"blue"})
 .onTap(()=>{
    statusBar.theme = "dark";
    navigationBar.theme = "dark";
 }).appendTo(contentView);
  • Tabris.js version: 3.5
  • Device: Huawei P10 lite
  • OS: Android 8

Code snippet

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ishigo1987commented, Jun 30, 2020

It works, thank you

0reactions
ishigo1987commented, Jun 29, 2020

ok i will do that this night and i will let you know

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the status bar color in Android? - Stack Overflow
Android 5.0 Lollipop introduced Material Design theme which automatically colors the status bar based on the colorPrimaryDark value of the theme.
Read more >
barTintColor not working in iOS 15 | Apple Developer Forums
Hi,. When I run the following code in application(_ :didFinishLaunchingWithOptions) in iOS 15, the bar color turns transparent (thus, showing the black ...
Read more >
How to Change the Color of Status Bar in an Android App?
Method 1: Creating a New Theme. You can follow this method in apps that are built with Kotlin or Java. It will work...
Read more >
Change System Bar Colors in your App | Android Studio Tutorial
My Online Courses ⭐Discount Coupon: LAUNCH-STEVDZA-SANhttps://stevdza-san.com ‍ Wanna become a member?
Read more >
Change nav bar color. - OnePlus Community
First, you change the Notification bar (yes the Notification, not the Navigation bar) to transparent in Nova Settings > Look & feel /...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found