feat(ui): Add more space to SectionTitle.kt

This commit is contained in:
Myzel394 2023-12-06 20:52:14 +01:00
parent 0192af584c
commit ce50ed1d68
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
2 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,11 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Mic
import androidx.compose.material3.Divider import androidx.compose.material3.Divider
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text import androidx.compose.material3.Text
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
@ -14,7 +18,9 @@ import androidx.compose.ui.unit.dp
@Composable @Composable
fun DividerTitle( fun DividerTitle(
modifier: Modifier = Modifier, modifier: Modifier = Modifier
.fillMaxWidth()
.padding(vertical = 32.dp),
title: String, title: String,
description: String, description: String,
) { ) {

View File

@ -158,8 +158,6 @@ fun SettingsScreen(
SaveFolderTile(settings = settings) SaveFolderTile(settings = settings)
DividerTitle( DividerTitle(
modifier = Modifier
.fillMaxWidth(),
title = stringResource(R.string.ui_settings_sections_audio_title), title = stringResource(R.string.ui_settings_sections_audio_title),
description = stringResource(R.string.ui_settings_sections_audio_description), description = stringResource(R.string.ui_settings_sections_audio_description),
) )