From 88a87c8455d79af4d5ce6dfc07c9146b4ce9c38e Mon Sep 17 00:00:00 2001 From: Kirill Voskrebentsev Date: Mon, 4 Jul 2022 23:27:34 +0300 Subject: [PATCH 01/16] MC-6146 redesign partner auth button --- .../core/app_demo_partner/PartnerActivity.kt | 5 +- .../src/main/res/layout/activity_partner.xml | 8 +- .../tinkoffId/ui/TinkoffIdSignInButton.kt | 386 +++++++++++++----- .../tinkoff_id_tinkoff_small_logo.png | Bin 0 -> 13412 bytes .../tinkoff_id_tinkoff_small_logo_border.png | Bin 0 -> 9281 bytes .../tinkoff_id_tinkoff_small_logo.png | Bin 0 -> 9672 bytes .../tinkoff_id_tinkoff_small_logo_border.png | Bin 0 -> 5973 bytes .../tinkoff_id_tinkoff_small_logo.png | Bin 0 -> 16325 bytes .../tinkoff_id_tinkoff_small_logo_border.png | Bin 0 -> 12697 bytes .../tinkoff_id_tinkoff_small_logo.png | Bin 0 -> 22559 bytes .../tinkoff_id_tinkoff_small_logo_border.png | Bin 0 -> 18407 bytes .../tinkoff_id_tinkoff_small_logo.png | Bin 0 -> 28914 bytes .../tinkoff_id_tinkoff_small_logo_border.png | Bin 0 -> 24250 bytes ...off_id_cashback_background_black_style.xml | 25 ++ ...koff_id_cashback_background_gray_style.xml | 25 ++ ...ff_id_cashback_background_yellow_style.xml | 25 ++ ..._sign_in_button_background_black_style.xml | 36 ++ ..._sign_in_button_background_gray_style.xml} | 8 +- ...sign_in_button_background_yellow_style.xml | 36 ++ ..._compact_button_background_black_style.xml | 34 ++ ...n_compact_button_background_gray_style.xml | 34 ++ ...compact_button_background_yellow_style.xml | 34 ++ tinkoff-id/src/main/res/values-ru/strings.xml | 4 +- tinkoff-id/src/main/res/values/attr.xml | 10 +- tinkoff-id/src/main/res/values/colors.xml | 22 +- tinkoff-id/src/main/res/values/dimens.xml | 5 +- tinkoff-id/src/main/res/values/strings.xml | 4 +- 27 files changed, 584 insertions(+), 117 deletions(-) create mode 100644 tinkoff-id/src/main/res/drawable-hdpi/tinkoff_id_tinkoff_small_logo.png create mode 100644 tinkoff-id/src/main/res/drawable-hdpi/tinkoff_id_tinkoff_small_logo_border.png create mode 100644 tinkoff-id/src/main/res/drawable-mdpi/tinkoff_id_tinkoff_small_logo.png create mode 100644 tinkoff-id/src/main/res/drawable-mdpi/tinkoff_id_tinkoff_small_logo_border.png create mode 100644 tinkoff-id/src/main/res/drawable-xhdpi/tinkoff_id_tinkoff_small_logo.png create mode 100644 tinkoff-id/src/main/res/drawable-xhdpi/tinkoff_id_tinkoff_small_logo_border.png create mode 100644 tinkoff-id/src/main/res/drawable-xxhdpi/tinkoff_id_tinkoff_small_logo.png create mode 100644 tinkoff-id/src/main/res/drawable-xxhdpi/tinkoff_id_tinkoff_small_logo_border.png create mode 100644 tinkoff-id/src/main/res/drawable-xxxhdpi/tinkoff_id_tinkoff_small_logo.png create mode 100644 tinkoff-id/src/main/res/drawable-xxxhdpi/tinkoff_id_tinkoff_small_logo_border.png create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_cashback_background_black_style.xml create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_cashback_background_gray_style.xml create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_cashback_background_yellow_style.xml create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_sign_in_button_background_black_style.xml rename tinkoff-id/src/main/res/drawable/{tinkoff_id_sign_in_button_background.xml => tinkoff_id_sign_in_button_background_gray_style.xml} (83%) create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_sign_in_button_background_yellow_style.xml create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_sign_in_compact_button_background_black_style.xml create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_sign_in_compact_button_background_gray_style.xml create mode 100644 tinkoff-id/src/main/res/drawable/tinkoff_id_sign_in_compact_button_background_yellow_style.xml diff --git a/app-demo/src/main/java/ru/tinkoff/core/app_demo_partner/PartnerActivity.kt b/app-demo/src/main/java/ru/tinkoff/core/app_demo_partner/PartnerActivity.kt index cb5336d..3e2d4a2 100644 --- a/app-demo/src/main/java/ru/tinkoff/core/app_demo_partner/PartnerActivity.kt +++ b/app-demo/src/main/java/ru/tinkoff/core/app_demo_partner/PartnerActivity.kt @@ -9,6 +9,7 @@ import android.widget.EditText import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import ru.tinkoff.core.tinkoffId.TinkoffIdAuth +import ru.tinkoff.core.tinkoffId.ui.TinkoffIdSignInButton import kotlin.LazyThreadSafetyMode.NONE class PartnerActivity : AppCompatActivity() { @@ -29,8 +30,8 @@ class PartnerActivity : AppCompatActivity() { private val redirectUriEditText by lazy(NONE) { findViewById(R.id.etRedirectUri) } private val reset by lazy(NONE) { findViewById