mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Theme call spotlight based on server theme / material 3
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
46f6e729a1
commit
006c893318
@ -880,12 +880,13 @@ public class CallActivity extends CallBaseActivity {
|
||||
if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_MICROPHONE)) {
|
||||
|
||||
if (!appPreferences.getPushToTalkIntroShown()) {
|
||||
int primary = viewThemeUtils.getScheme(binding.audioOutputButton.getContext()).getPrimary();
|
||||
spotlightView = new SpotlightView.Builder(this)
|
||||
.introAnimationDuration(300)
|
||||
.enableRevealAnimation(true)
|
||||
.performClick(false)
|
||||
.fadeinTextDuration(400)
|
||||
.headingTvColor(getResources().getColor(R.color.colorPrimary))
|
||||
.headingTvColor(primary)
|
||||
.headingTvSize(20)
|
||||
.headingTvText(getResources().getString(R.string.nc_push_to_talk))
|
||||
.subHeadingTvColor(getResources().getColor(R.color.bg_default))
|
||||
@ -894,7 +895,7 @@ public class CallActivity extends CallBaseActivity {
|
||||
.maskColor(Color.parseColor("#dc000000"))
|
||||
.target(binding.microphoneButton)
|
||||
.lineAnimDuration(400)
|
||||
.lineAndArcColor(getResources().getColor(R.color.colorPrimary))
|
||||
.lineAndArcColor(primary)
|
||||
.enableDismissAfterShown(true)
|
||||
.dismissOnBackPress(true)
|
||||
.usageId("pushToTalk")
|
||||
|
Loading…
Reference in New Issue
Block a user