diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/AppTab.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/AppTab.kt index 6bbc906..bc18ec9 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/AppTab.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/AppTab.kt @@ -70,7 +70,6 @@ fun AppTab( Box(modifier = Modifier.fillMaxSize()) { Crossfade(targetState = repositorySelectionStatus) { - @Suppress("UnnecessaryVariable") // Don't inline it because smart cast won't work when (repositorySelectionStatusValue) { RepositorySelectionStatus.None -> { WelcomePage(tabViewModel = tabViewModel) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/components/AdjustableOutlinedTextField.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/components/AdjustableOutlinedTextField.kt index f3a93e4..3b613d2 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/components/AdjustableOutlinedTextField.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/components/AdjustableOutlinedTextField.kt @@ -50,7 +50,7 @@ fun AdjustableOutlinedTextField( BasicTextField( modifier = modifier - .heightIn(min = 48.dp) + .heightIn(min = 40.dp) .background(backgroundColor), value = value, onValueChange = onValueChange, @@ -69,7 +69,7 @@ fun AdjustableOutlinedTextField( color = indicatorColor, shape = shape ) - .padding(12.dp), + .padding(horizontal = 12.dp), contentAlignment = Alignment.CenterStart, ) { innerTextField() diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/settings/SettingsDialog.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/settings/SettingsDialog.kt index 8d616da..1b22b88 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/settings/SettingsDialog.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/settings/SettingsDialog.kt @@ -8,6 +8,7 @@ import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalDensity +import androidx.compose.ui.res.painterResource import androidx.compose.ui.text.input.KeyboardType import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp @@ -61,6 +62,7 @@ fun SettingsDialog( Text( text = "Settings", style = MaterialTheme.typography.h3, + color = MaterialTheme.colors.primaryTextColor, modifier = Modifier.padding(top = 8.dp, bottom = 16.dp) ) @@ -110,7 +112,6 @@ fun SettingsDialog( ) } } - } } @@ -246,6 +247,7 @@ fun Category( .handMouseClickable(onClick) .padding(8.dp), style = MaterialTheme.typography.body1, + color = MaterialTheme.colors.primaryTextColor, ) } @@ -271,12 +273,20 @@ fun SettingDropDown( OutlinedButton( onClick = { showThemeDropdown = true }, colors = ButtonDefaults.outlinedButtonColors(backgroundColor = MaterialTheme.colors.background), - modifier = Modifier.widthIn(min = 120.dp) + modifier = Modifier.width(180.dp) ) { Text( text = currentOption.optionName, style = MaterialTheme.typography.body1, color = MaterialTheme.colors.primaryTextColor, + modifier = Modifier.weight(1f), + maxLines = 1 + ) + + Icon( + painter = painterResource("dropdown.svg"), + contentDescription = null, + tint = MaterialTheme.colors.primaryTextColor, ) } diff --git a/src/main/resources/dropdown.svg b/src/main/resources/dropdown.svg new file mode 100644 index 0000000..49d3d0f --- /dev/null +++ b/src/main/resources/dropdown.svg @@ -0,0 +1 @@ + \ No newline at end of file