Properly theme verification request popup background
Change-Id: Ia613b9cb6efe41a54cb9ec049828aac27f0968c7
This commit is contained in:
parent
9c2c07f194
commit
1590740981
|
@ -27,6 +27,8 @@
|
|||
<attr name="user_color_pl_1" format="color" />
|
||||
<attr name="user_color_pl_0" format="color" />
|
||||
|
||||
<attr name="verification_request_background" format="color" />
|
||||
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -134,6 +134,7 @@
|
|||
<item name="user_color_pl_95">@color/user_color_element_pl_95</item>
|
||||
<item name="user_color_pl_100">@color/user_color_element_pl_100</item>
|
||||
<item name="voice_message_playback_background_color">?vctr_content_quinary</item>
|
||||
<item name="verification_request_background">?vctr_notice_secondary</item>
|
||||
|
||||
<item name="android:statusBarColor">@color/android_status_bar_background_dark</item>
|
||||
<item name="android:navigationBarColor">@color/android_navigation_bar_background_dark</item>
|
||||
|
|
|
@ -134,6 +134,7 @@
|
|||
<item name="user_color_pl_95">@color/user_color_element_pl_95</item>
|
||||
<item name="user_color_pl_100">@color/user_color_element_pl_100</item>
|
||||
<item name="voice_message_playback_background_color">?vctr_content_quinary</item>
|
||||
<item name="verification_request_background">?vctr_notice_secondary</item>
|
||||
|
||||
<!-- Use dark color, to have enough contrast with icons color. windowLightStatusBar is only available in API 23+ -->
|
||||
<item name="android:statusBarColor">@color/android_status_bar_background_dark</item>
|
||||
|
|
|
@ -96,6 +96,7 @@
|
|||
<item name="user_color_pl_95">@color/user_color_sc_pl_95</item>
|
||||
<item name="user_color_pl_100">@color/user_color_sc_pl_100</item>
|
||||
<item name="voice_message_playback_background_color">#1fffffff</item>
|
||||
<item name="verification_request_background">?colorBackgroundFloating</item>
|
||||
|
||||
<item name="android:statusBarColor">@color/background_black_sc</item>
|
||||
<item name="android:navigationBarColor">@color/background_black_sc</item>
|
||||
|
|
|
@ -165,7 +165,7 @@ class IncomingVerificationRequestHandler @Inject constructor(
|
|||
pr.roomId ?: ""
|
||||
)
|
||||
}
|
||||
colorAttribute = R.attr.vctr_notice_secondary
|
||||
colorAttribute = R.attr.verification_request_background
|
||||
// 5mn expiration
|
||||
expirationTimestamp = System.currentTimeMillis() + (5 * 60 * 1000L)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue