From b18b95d1a7b40fd626f0ab64768f25fc3500a131 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Mon, 10 Oct 2022 17:32:51 +0200 Subject: [PATCH] Adding new unknown shield icon --- .../app/core/ui/views/ShieldImageView.kt | 6 +++--- .../main/res/drawable/ic_shield_unknown.xml | 20 +++++++++++++++++++ .../drawable/ic_shield_unknown_no_border.xml | 18 +++++++++++++++++ 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 vector/src/main/res/drawable/ic_shield_unknown.xml create mode 100644 vector/src/main/res/drawable/ic_shield_unknown_no_border.xml diff --git a/vector/src/main/java/im/vector/app/core/ui/views/ShieldImageView.kt b/vector/src/main/java/im/vector/app/core/ui/views/ShieldImageView.kt index 1990859668..6327daec86 100644 --- a/vector/src/main/java/im/vector/app/core/ui/views/ShieldImageView.kt +++ b/vector/src/main/java/im/vector/app/core/ui/views/ShieldImageView.kt @@ -45,8 +45,8 @@ class ShieldImageView @JvmOverloads constructor( RoomEncryptionTrustLevel.Default -> { contentDescription = context.getString(R.string.a11y_trust_level_default) setImageResource( - if (borderLess) R.drawable.ic_shield_black_no_border - else R.drawable.ic_shield_black + if (borderLess) R.drawable.ic_shield_unknown_no_border + else R.drawable.ic_shield_unknown ) } RoomEncryptionTrustLevel.Warning -> { @@ -137,7 +137,7 @@ class ShieldImageView @JvmOverloads constructor( @DrawableRes fun RoomEncryptionTrustLevel.toDrawableRes(): Int { return when (this) { - RoomEncryptionTrustLevel.Default -> R.drawable.ic_shield_black + RoomEncryptionTrustLevel.Default -> R.drawable.ic_shield_unknown RoomEncryptionTrustLevel.Warning -> R.drawable.ic_shield_warning RoomEncryptionTrustLevel.Trusted -> R.drawable.ic_shield_trusted RoomEncryptionTrustLevel.E2EWithUnsupportedAlgorithm -> R.drawable.ic_warning_badge diff --git a/vector/src/main/res/drawable/ic_shield_unknown.xml b/vector/src/main/res/drawable/ic_shield_unknown.xml new file mode 100644 index 0000000000..7f5fbc730b --- /dev/null +++ b/vector/src/main/res/drawable/ic_shield_unknown.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/vector/src/main/res/drawable/ic_shield_unknown_no_border.xml b/vector/src/main/res/drawable/ic_shield_unknown_no_border.xml new file mode 100644 index 0000000000..89331edf9e --- /dev/null +++ b/vector/src/main/res/drawable/ic_shield_unknown_no_border.xml @@ -0,0 +1,18 @@ + + + + +