File tree Expand file tree Collapse file tree
app/src/main/java/de/markusressel/kodeeditor/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import androidx.compose.ui.text.font.FontFamily
2020import androidx.compose.ui.text.input.TextFieldValue
2121import androidx.compose.ui.tooling.preview.Preview
2222import androidx.compose.ui.unit.dp
23+ import androidx.compose.ui.unit.sp
2324import de.markusressel.kodeeditor.demo.ui.theme.KodeEditorTheme
2425import de.markusressel.kodeeditor.library.compose.KodeEditor
2526import de.markusressel.kodeeditor.library.compose.KodeEditorDefaults
@@ -61,6 +62,8 @@ class ComposeMainActivity : ComponentActivity() {
6162 textStyle = LocalTextStyle .current.copy(
6263 color = MaterialTheme .colorScheme.onSurface,
6364 fontFamily = FontFamily .Monospace ,
65+ fontSize = currentFontSize.sp,
66+ lineHeight = currentFontSize.sp
6467 ),
6568 colors = KodeEditorDefaults .editorColors()
6669 )
You can’t perform that action at this time.
0 commit comments