fix: Unify save button with delete button in RecordingControl

This commit is contained in:
Myzel394 2023-12-29 23:00:37 +01:00
parent 8b4c46a931
commit cb9a86be67
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
3 changed files with 1 additions and 15 deletions

View File

@ -33,13 +33,6 @@ fun SaveButton(
onClick = onSave,
colors = ButtonDefaults.textButtonColors(),
) {
Icon(
Icons.Default.Save,
contentDescription = null,
modifier = Modifier
.size(ButtonDefaults.IconSize)
)
Spacer(Modifier.width(ButtonDefaults.IconSpacing))
Text(
label,
fontSize = MaterialTheme.typography.bodySmall.fontSize,

View File

@ -1,20 +1,14 @@
package app.myzel394.alibi.ui.components.RecorderScreen.molecules
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.EaseOutElastic
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableFloatStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
@ -26,7 +20,6 @@ import app.myzel394.alibi.ui.components.RecorderScreen.atoms.SaveButton
import app.myzel394.alibi.ui.utils.RandomStack
import app.myzel394.alibi.ui.utils.rememberInitialRecordingAnimation
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
@Composable
fun RecordingControl(

View File

@ -25,7 +25,7 @@
<string name="ui_audioRecorder_action_delete_confirm_message">Are you sure you want to delete this recording?</string>
<string name="ui_audioRecorder_action_pause_label">Pause</string>
<string name="ui_audioRecorder_action_resume_label">Resume</string>
<string name="ui_audioRecorder_action_save_label">Save Recording</string>
<string name="ui_audioRecorder_action_save_label">Save</string>
<string name="ui_audioRecorder_action_start_description_1">Alibi will continue recording in the background and store the last\u0020</string>
<string name="ui_audioRecorder_action_start_description_2"><xliff:g name="durationInMinutes">%s</xliff:g> minutes</string>