Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ fun CodeInputScreen(
DropdownMenuItem(
text = { Text(stringResource(R.string.paste_action)) },
onClick = {
val pastedText = nativeClipboard.primaryClip?.getItemAt(0)?.text?.toString() ?: ""
val pastedText =
nativeClipboard.primaryClip?.getItemAt(0)?.text?.toString() ?: ""
val digits = pastedText.filter { it.isDigit() }.take(maxCodeLength)
if (digits.isNotEmpty()) {
code = digits
Expand All @@ -329,7 +330,10 @@ fun CodeInputScreen(
Spacer(modifier = Modifier.height(middleSpacerHeight))

if (isSubmitting) {
LoadingIndicator(modifier = Modifier.size(32.dp))
LoadingIndicator(
modifier = Modifier.size(32.dp),
color = MaterialTheme.colorScheme.primary
)
} else {
Column(verticalArrangement = Arrangement.spacedBy(12.dp)) {
Button(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ private fun PasswordContent(
if (isSubmitting) {
LoadingIndicator(
modifier = Modifier.size(24.dp),
color = MaterialTheme.colorScheme.onPrimary
color = MaterialTheme.colorScheme.primary
)
} else {
Text(stringResource(R.string.unlock_button), fontSize = 18.sp, fontWeight = FontWeight.Bold)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ fun PhoneInputScreen(
if (isSubmitting) {
LoadingIndicator(
modifier = Modifier.size(24.dp),
color = MaterialTheme.colorScheme.onPrimary
color = MaterialTheme.colorScheme.primary
)
} else {
Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ fun AdvancedCircularRecorderScreen(
}
}

@OptIn(ExperimentalMaterial3ExpressiveApi::class)
@SuppressLint("MissingPermission", "RestrictedApi")
@Composable
fun NativeCircularCameraContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Download
Expand All @@ -14,7 +23,13 @@ import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.LoadingIndicator
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clipToBounds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import java.util.*
import java.util.regex.Pattern
import kotlin.math.max

@OptIn(ExperimentalMaterial3ExpressiveApi::class)
@Composable
fun YouTubeViewer(
videoUrl: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import org.monogram.presentation.features.webview.components.OptionsSheet
import org.monogram.presentation.features.webview.components.WebViewTopBar
import java.io.ByteArrayInputStream

@OptIn(ExperimentalMaterial3Api::class)
@OptIn(ExperimentalMaterial3Api::class, ExperimentalMaterial3ExpressiveApi::class)
@Composable
fun InternalWebView(
url: String,
Expand Down