Updated on 2026-08-14

This commit is contained in:
Tangem 2022-12-23 20:34:08 +04:00
parent d17f046b06
commit fdd2b563bd
121 changed files with 2218 additions and 1594 deletions

View file

@ -229,4 +229,5 @@
<string name="common_biometrics">biometrics</string>
<string name="app_settings_enable_biometrics_title">Enable biometric authentication</string>
<string name="app_settings_enable_biometrics_description">Go to settings to enable biometric authentication in the Tangem App</string>
<string name="wallet_balance_missing_derivation">Scan the card</string>
</resources>

View file

@ -229,4 +229,5 @@
<string name="common_biometrics">biometrics</string>
<string name="app_settings_enable_biometrics_title">Enable biometric authentication</string>
<string name="app_settings_enable_biometrics_description">Go to settings to enable biometric authentication in the Tangem App</string>
<string name="wallet_balance_missing_derivation">Scan the card</string>
</resources>

View file

@ -229,4 +229,5 @@
<string name="common_biometrics">biometrics</string>
<string name="app_settings_enable_biometrics_title">Enable biometric authentication</string>
<string name="app_settings_enable_biometrics_description">Go to settings to enable biometric authentication in the Tangem App</string>
<string name="wallet_balance_missing_derivation">Scan the card</string>
</resources>

View file

@ -229,4 +229,5 @@
<string name="common_biometrics">биометрией</string>
<string name="app_settings_enable_biometrics_title">Включите биометрическую аутентификацию</string>
<string name="app_settings_enable_biometrics_description">Перейдите в настройки, чтобы включить биометрическую аутентификацию в приложении Tangem App</string>
<string name="wallet_balance_missing_derivation">Отсканируйте карту</string>
</resources>

View file

@ -229,4 +229,5 @@
<string name="common_biometrics">biometrics</string>
<string name="app_settings_enable_biometrics_title">Enable biometric authentication</string>
<string name="app_settings_enable_biometrics_description">Go to settings to enable biometric authentication in the Tangem App</string>
<string name="wallet_balance_missing_derivation">Scan the card</string>
</resources>

View file

@ -18,7 +18,6 @@ import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import com.tangem.core.ui.R
import com.tangem.core.ui.components.SystemBarsEffect
import com.tangem.core.ui.res.TangemTheme
abstract class ComposeBottomSheetFragment<ScreenState> : BottomSheetDialogFragment() {
@ -52,13 +51,6 @@ abstract class ComposeBottomSheetFragment<ScreenState> : BottomSheetDialogFragme
return ComposeView(context).apply {
setContent {
TangemTheme {
val backgroundColor = TangemTheme.colors.background.plain
SystemBarsEffect {
setSystemBarsColor(
color = backgroundColor,
)
}
ScreenContent(
modifier = Modifier
.fillMaxWidth()
@ -66,7 +58,7 @@ abstract class ComposeBottomSheetFragment<ScreenState> : BottomSheetDialogFragme
if (expandedHeightFraction != null) it.fillMaxHeight(expandedHeightFraction!!) else it
}
.background(
color = backgroundColor,
color = TangemTheme.colors.background.plain,
shape = TangemTheme.shapes.bottomSheet,
),
state = provideState().value,

View file

@ -0,0 +1,14 @@
package com.tangem.core.ui.fragments
import android.view.WindowManager
import androidx.annotation.ColorRes
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
fun Fragment.setStatusBarColor(@ColorRes colorResId: Int) {
with(requireActivity().window) {
clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS)
statusBarColor = ContextCompat.getColor(requireContext(), colorResId)
}
}