Skip to content
Merged
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 @@ -161,6 +161,7 @@ internal fun NoteEditorScreen(
noteEditorViewModel.canRedo,
noteEditorViewModel::onAddSpanClick,
noteEditorViewModel::deleteSelection,
noteEditorViewModel::copySelection,
noteEditorViewModel::clearSelections,
noteEditorViewModel::onAddCheckListClick,
noteEditorViewModel::onAddListItemClick
Expand Down Expand Up @@ -316,6 +317,7 @@ private fun BottomScreen(
canRedo: StateFlow<Boolean>,
onSpanSelected: (Span) -> Unit = {},
deleteSelection: () -> Unit = {},
copySelection: () -> Unit = {},
onClose: () -> Unit = {},
onCheckItem: () -> Unit = {},
onListItem: () -> Unit = {}
Expand Down Expand Up @@ -358,6 +360,7 @@ private fun BottomScreen(
modifier = containerModifier,
onSpanClick = onSpanSelected,
onDelete = deleteSelection,
onCopy = copySelection,
onClose = onClose,
checkboxClick = onCheckItem,
listItemClick = onListItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.foundation.layout.width
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.CopyAll
import androidx.compose.material.icons.filled.DeleteOutline
import androidx.compose.material.icons.outlined.FormatBold
import androidx.compose.material.icons.outlined.FormatItalic
Expand All @@ -36,6 +37,7 @@ fun EditionScreen(
checkboxClick: () -> Unit = {},
listItemClick: () -> Unit = {},
onDelete: () -> Unit = {},
onCopy: () -> Unit = {},
onClose: () -> Unit = {},
) {
val iconPadding = PaddingValues(vertical = 4.dp)
Expand Down Expand Up @@ -130,6 +132,19 @@ fun EditionScreen(
tint = MaterialTheme.colorScheme.onPrimary
)

Spacer(modifier = Modifier.width(spaceWidth))

Icon(
modifier = Modifier
.clip(clipShape)
.clickable(onClick = onCopy)
.size(iconSize)
.padding(iconPadding),
imageVector = Icons.Default.CopyAll,
contentDescription = "Copy",
tint = MaterialTheme.colorScheme.onPrimary
)

Spacer(modifier = Modifier.weight(1F))

Icon(
Expand Down
Loading