Updated on 2026-08-14
This commit is contained in:
parent
ff8f9c9b18
commit
6aab25427d
75 changed files with 2122 additions and 57 deletions
|
|
@ -31,6 +31,7 @@ import androidx.compose.ui.unit.Dp
|
|||
import com.tangem.core.ui.R
|
||||
import com.tangem.core.ui.components.*
|
||||
import com.tangem.core.ui.components.buttons.common.TangemButtonSize
|
||||
import androidx.compose.ui.text.AnnotatedString
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
import com.tangem.core.ui.extensions.resolveAnnotatedReference
|
||||
import com.tangem.core.ui.extensions.resolveReference
|
||||
|
|
@ -259,7 +260,9 @@ internal fun TextsBlock(
|
|||
titleColor: Color = TangemTheme.colors.text.primary1,
|
||||
) {
|
||||
Column(modifier = modifier) {
|
||||
val titleText = title?.resolveReference()
|
||||
val titleText = title?.let { ref ->
|
||||
if (ref is TextReference.Annotated) ref.value else AnnotatedString(ref.resolveReference())
|
||||
}
|
||||
|
||||
if (titleText != null) {
|
||||
Text(
|
||||
|
|
|
|||
18
core/ui/src/main/res/drawable/ic_gift_promo_24.xml
Normal file
18
core/ui/src/main/res/drawable/ic_gift_promo_24.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M18.527,6.25C18.971,6.25 19.345,6.25 19.649,6.272C19.965,6.295 20.272,6.345 20.565,6.48C20.896,6.633 21.192,6.862 21.407,7.161C21.611,7.443 21.687,7.747 21.72,8.04C21.75,8.304 21.75,8.621 21.75,8.964V9.036C21.75,9.379 21.75,9.696 21.72,9.96C21.687,10.252 21.611,10.557 21.407,10.839C21.192,11.138 20.896,11.367 20.565,11.52C20.272,11.655 19.965,11.705 19.649,11.728C19.345,11.75 18.971,11.75 18.527,11.75H5.473C5.029,11.75 4.655,11.75 4.351,11.728C4.035,11.705 3.728,11.655 3.436,11.52C3.104,11.367 2.808,11.138 2.593,10.839C2.389,10.557 2.313,10.252 2.28,9.96C2.25,9.696 2.25,9.379 2.25,9.036V8.964C2.25,8.621 2.25,8.304 2.28,8.04C2.313,7.747 2.389,7.443 2.593,7.161C2.808,6.862 3.104,6.633 3.436,6.48C3.728,6.345 4.035,6.295 4.351,6.272C4.655,6.25 5.029,6.25 5.473,6.25H18.527Z"
|
||||
android:fillColor="#0099FF"/>
|
||||
<path
|
||||
android:pathData="M3.787,12.918C3.523,12.874 3.392,12.852 3.321,12.911C3.25,12.971 3.25,13.094 3.25,13.34V15.054C3.25,16.657 3.25,17.936 3.385,18.939C3.524,19.975 3.82,20.829 4.495,21.504C5.17,22.179 6.023,22.474 7.06,22.614C8.063,22.749 9.342,22.749 10.944,22.749C10.975,22.749 11,22.724 11,22.693L11,13.399C11,13.21 11,13.116 10.941,13.057C10.883,12.999 10.789,12.999 10.6,12.999H5.439C5.022,12.999 4.611,12.999 4.26,12.973C4.115,12.963 3.956,12.947 3.787,12.918Z"
|
||||
android:fillColor="#0099FF"/>
|
||||
<path
|
||||
android:pathData="M13.4,12.999C13.211,12.999 13.117,12.999 13.059,13.057C13,13.116 13,13.21 13,13.399V22.693C13,22.724 13.025,22.749 13.056,22.749C14.658,22.749 15.937,22.749 16.94,22.614C17.977,22.474 18.83,22.179 19.505,21.504C20.18,20.829 20.476,19.975 20.615,18.939C20.75,17.936 20.75,16.657 20.75,15.054V13.34C20.75,13.094 20.75,12.971 20.679,12.911C20.608,12.852 20.477,12.874 20.213,12.918C20.044,12.947 19.885,12.963 19.74,12.973C19.389,12.999 18.978,12.999 18.561,12.999H13.4Z"
|
||||
android:fillColor="#0099FF"/>
|
||||
<path
|
||||
android:pathData="M8.143,1.25C9.715,1.25 11.112,1.998 12,3.156C12.888,1.998 14.285,1.25 15.857,1.25H16.214C17.752,1.25 19,2.498 19,4.036C19,6.363 17.113,8.25 14.786,8.25H9.214C6.887,8.25 5,6.363 5,4.036C5,2.498 6.248,1.25 7.786,1.25H8.143ZM7.786,3.25C7.352,3.25 7,3.602 7,4.036C7,5.259 7.991,6.25 9.214,6.25H11V6.107C11,4.529 9.721,3.25 8.143,3.25H7.786ZM15.857,3.25C14.28,3.25 13,4.529 13,6.107V6.25H14.786C16.009,6.25 17,5.259 17,4.036C17,3.602 16.648,3.25 16.214,3.25H15.857Z"
|
||||
android:fillColor="#0099FF"/>
|
||||
</vector>
|
||||
Loading…
Add table
Add a link
Reference in a new issue