mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +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 (EffortlessPermissions.hasPermissions(this, PERMISSIONS_MICROPHONE)) {
|
||||||
|
|
||||||
if (!appPreferences.getPushToTalkIntroShown()) {
|
if (!appPreferences.getPushToTalkIntroShown()) {
|
||||||
|
int primary = viewThemeUtils.getScheme(binding.audioOutputButton.getContext()).getPrimary();
|
||||||
spotlightView = new SpotlightView.Builder(this)
|
spotlightView = new SpotlightView.Builder(this)
|
||||||
.introAnimationDuration(300)
|
.introAnimationDuration(300)
|
||||||
.enableRevealAnimation(true)
|
.enableRevealAnimation(true)
|
||||||
.performClick(false)
|
.performClick(false)
|
||||||
.fadeinTextDuration(400)
|
.fadeinTextDuration(400)
|
||||||
.headingTvColor(getResources().getColor(R.color.colorPrimary))
|
.headingTvColor(primary)
|
||||||
.headingTvSize(20)
|
.headingTvSize(20)
|
||||||
.headingTvText(getResources().getString(R.string.nc_push_to_talk))
|
.headingTvText(getResources().getString(R.string.nc_push_to_talk))
|
||||||
.subHeadingTvColor(getResources().getColor(R.color.bg_default))
|
.subHeadingTvColor(getResources().getColor(R.color.bg_default))
|
||||||
@ -894,7 +895,7 @@ public class CallActivity extends CallBaseActivity {
|
|||||||
.maskColor(Color.parseColor("#dc000000"))
|
.maskColor(Color.parseColor("#dc000000"))
|
||||||
.target(binding.microphoneButton)
|
.target(binding.microphoneButton)
|
||||||
.lineAnimDuration(400)
|
.lineAnimDuration(400)
|
||||||
.lineAndArcColor(getResources().getColor(R.color.colorPrimary))
|
.lineAndArcColor(primary)
|
||||||
.enableDismissAfterShown(true)
|
.enableDismissAfterShown(true)
|
||||||
.dismissOnBackPress(true)
|
.dismissOnBackPress(true)
|
||||||
.usageId("pushToTalk")
|
.usageId("pushToTalk")
|
||||||
|
Loading…
Reference in New Issue
Block a user