[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-android] 02/09: [wallet] Fixed status bar foreground on lig
From: |
gnunet |
Subject: |
[taler-taler-android] 02/09: [wallet] Fixed status bar foreground on light mode |
Date: |
Tue, 31 Jan 2023 14:39:50 +0100 |
This is an automated email from the git hooks/post-receive script.
torsten-grote pushed a commit to branch master
in repository taler-android.
commit 9c2537144d0f9ca3c82e3e62447ea989528588cf
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Wed Jan 11 21:30:40 2023 -0600
[wallet] Fixed status bar foreground on light mode
---
wallet/src/main/java/net/taler/wallet/MainActivity.kt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/MainActivity.kt
b/wallet/src/main/java/net/taler/wallet/MainActivity.kt
index cd07ef8..52db73b 100644
--- a/wallet/src/main/java/net/taler/wallet/MainActivity.kt
+++ b/wallet/src/main/java/net/taler/wallet/MainActivity.kt
@@ -96,10 +96,12 @@ class MainActivity : AppCompatActivity(),
OnNavigationItemSelectedListener,
// Set status bar color
val color = SurfaceColors.SURFACE_0.getColor(this)
+ val isLightMode = resources.configuration.uiMode and
Configuration.UI_MODE_NIGHT_MASK !=
+ Configuration.UI_MODE_NIGHT_YES
window.statusBarColor = color
window.navigationBarColor = color
- insetsController?.isAppearanceLightStatusBars =
- resources.configuration.uiMode and
Configuration.UI_MODE_NIGHT_MASK != Configuration.UI_MODE_NIGHT_YES
+ insetsController?.isAppearanceLightStatusBars = isLightMode
+ insetsController?.isAppearanceLightNavigationBars = isLightMode
ui = ActivityMainBinding.inflate(layoutInflater)
setContentView(ui.root)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-android] branch master updated (c2a9681 -> a190a2d), gnunet, 2023/01/31
- [taler-taler-android] 02/09: [wallet] Fixed status bar foreground on light mode,
gnunet <=
- [taler-taler-android] 09/09: [wallet] Material3 adjustments after rebase, gnunet, 2023/01/31
- [taler-taler-android] 03/09: [wallet] Added colors created with M3 Theme Builder, gnunet, 2023/01/31
- [taler-taler-android] 04/09: [wallet] Fixed icon color on scan QR button, gnunet, 2023/01/31
- [taler-taler-android] 05/09: [wallet] Refactored error colors using MaterialTheme, gnunet, 2023/01/31
- [taler-taler-android] 01/09: [wallet] Experimental port to Material 3, gnunet, 2023/01/31
- [taler-taler-android] 08/09: [wallet] Fix color of ic_unarchive icon, gnunet, 2023/01/31
- [taler-taler-android] 07/09: [wallet] Fix icon color in button, gnunet, 2023/01/31
- [taler-taler-android] 06/09: [wallet] Navbar and status bar are now set via XML, gnunet, 2023/01/31