mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-16 23:12:12 +00:00
ref: adjust modal ui
This commit is contained in:
parent
49c3329526
commit
bbd785138b
3 changed files with 7 additions and 11 deletions
|
|
@ -5,6 +5,8 @@ import androidx.compose.foundation.clickable
|
|||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
||||
import androidx.compose.foundation.layout.FlowRow
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
|
|
@ -909,7 +911,7 @@ private fun ErrorState(
|
|||
}
|
||||
|
||||
@Composable
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@OptIn(ExperimentalMaterial3Api::class, ExperimentalLayoutApi::class)
|
||||
private fun CommunityDetailsDialog(
|
||||
title: String,
|
||||
subtitle: String,
|
||||
|
|
@ -946,9 +948,10 @@ private fun CommunityDetailsDialog(
|
|||
|
||||
content()
|
||||
|
||||
Row(
|
||||
FlowRow(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.spacedBy(12.dp, Alignment.End),
|
||||
verticalArrangement = Arrangement.spacedBy(12.dp),
|
||||
) {
|
||||
if (primaryActionLabel != null && onPrimaryAction != null) {
|
||||
Button(onClick = onPrimaryAction) {
|
||||
|
|
@ -960,15 +963,6 @@ private fun CommunityDetailsDialog(
|
|||
Text(secondaryActionLabel)
|
||||
}
|
||||
}
|
||||
Button(
|
||||
onClick = onDismiss,
|
||||
colors = ButtonDefaults.buttonColors(
|
||||
containerColor = MaterialTheme.colorScheme.surfaceVariant,
|
||||
contentColor = MaterialTheme.colorScheme.onSurface,
|
||||
),
|
||||
) {
|
||||
Text("Close")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1
mediamp
Submodule
1
mediamp
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit df33966d7fbc6eb14e43fb1892e062417d76e7f5
|
||||
1
vendor/mpv-kt-upstream
vendored
Submodule
1
vendor/mpv-kt-upstream
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 8a8ddddf430555878273da13006fc57e182b0c0c
|
||||
Loading…
Reference in a new issue