diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt index a5d8f27..4e50efd 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt @@ -87,16 +87,10 @@ class SettingsFragment : ConnectedFragment(), BaseSecurityLockDialog.OnPINPatter val nightMode = PreferenceManager.getDefaultSharedPreferences(context) .getBoolean(Constants.KEY_NIGHT_MODE_ACTIVATED, false) - // Make sure both toolbar and navigation bar show the correct colors in both day and night modes + // Make sure the toolbar show the correct colors in both day and night modes val toolbar: Toolbar? = activity?.findViewById(R.id.toolbar) toolbar?.setBackgroundResource(if (!nightMode) R.color.colorPrimary else R.color.colorToolbarDark) - val window = activity?.window - context?.let { context -> - window?.statusBarColor = ContextCompat.getColor(context, - if (!nightMode) R.color.colorPrimaryDark else R.color.colorStatusBarDark) - } - return inflater.inflate(R.layout.fragment_settings, container, false) } diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 52978e8..192e9f1 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -9,6 +9,8 @@ @font/p_f_beau_sans_pro @android:color/white + @color/colorPrimaryDark + @color/colorPrimaryDark