Skip to content

Commit

Permalink
Use editorTextStyle in MarkdownEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Jul 5, 2024
1 parent 32c389e commit 5a02cd0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.unit.dp
import com.darkrockstudios.libraries.mpfilepicker.FilePicker
import com.darkrockstudios.libraries.mpfilepicker.JvmFile
Expand Down Expand Up @@ -127,14 +126,13 @@ private fun Editor(
onMarkdownChange: (String) -> Unit,
modifier: Modifier,
) {
val monospacedTextStyle = JewelTheme.defaultTextStyle.copy(fontFamily = FontFamily.Monospace)
Box(modifier.padding(16.dp)) {
TextArea(
value = currentMarkdown,
onValueChange = onMarkdownChange,
modifier = Modifier.align(Alignment.TopStart).fillMaxWidth(),
undecorated = true,
textStyle = monospacedTextStyle,
textStyle = JewelTheme.editorTextStyle,
)
}
}

0 comments on commit 5a02cd0

Please sign in to comment.