mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Added tweaks to components, updated dependencies
This commit is contained in:
1 parent
ada5b48ba5
commit
8e42f81ea3
6 files changed
+19
-9
No files matched your search
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(21)
|
jvmToolchain(17)
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import androidx.compose.foundation.clickable
|
|||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
|
import androidx.compose.foundation.layout.PaddingValues
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.RowScope
|
import androidx.compose.foundation.layout.RowScope
|
||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
@@ -210,8 +211,9 @@ fun CardButton(onClick: () -> Unit, text: String, modifier: Modifier = Modifier)
|
|||||||
onClick = { onClick() }, colors = ButtonDefaults.buttonColors(
|
onClick = { onClick() }, colors = ButtonDefaults.buttonColors(
|
||||||
containerColor = MaterialTheme.colorScheme.surfaceVariant,
|
containerColor = MaterialTheme.colorScheme.surfaceVariant,
|
||||||
contentColor = MaterialTheme.colorScheme.onSurfaceVariant
|
contentColor = MaterialTheme.colorScheme.onSurfaceVariant
|
||||||
), shape = MaterialTheme.shapes.small, modifier = modifier
|
), shape = MaterialTheme.shapes.small, modifier = modifier,
|
||||||
) { Text(text = text, fontSize = 17.sp) }
|
contentPadding = PaddingValues(horizontal = 12.dp)
|
||||||
|
) { Text(text = text, fontSize = 16.sp) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
@@ -253,7 +255,7 @@ fun EmptyListCard(message: String) {
|
|||||||
modifier = Modifier.padding(32.dp)
|
modifier = Modifier.padding(32.dp)
|
||||||
) {
|
) {
|
||||||
Text(text = """¯\_(ツ)_/¯""", fontSize = 32.sp)
|
Text(text = """¯\_(ツ)_/¯""", fontSize = 32.sp)
|
||||||
Text(text = stringResource(R.string.empty_list_message), fontSize = 21.sp)
|
Text(text = stringResource(R.string.empty_list_message), fontSize = 21.sp, textAlign = TextAlign.Center)
|
||||||
Text(text = message, fontSize = 18.sp, textAlign = TextAlign.Center)
|
Text(text = message, fontSize = 18.sp, textAlign = TextAlign.Center)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,7 +179,11 @@ private fun RadarScreen(uiState: RadarState, navigateUp: () -> Unit) {
|
|||||||
modifier = Modifier.padding(32.dp)
|
modifier = Modifier.padding(32.dp)
|
||||||
) {
|
) {
|
||||||
Text(text = """¯\_(ツ)_/¯""", fontSize = 32.sp)
|
Text(text = """¯\_(ツ)_/¯""", fontSize = 32.sp)
|
||||||
Text(text = stringResource(R.string.empty_list_message), fontSize = 21.sp)
|
Text(
|
||||||
|
text = stringResource(R.string.empty_list_message),
|
||||||
|
fontSize = 21.sp,
|
||||||
|
textAlign = TextAlign.Center
|
||||||
|
)
|
||||||
Text(
|
Text(
|
||||||
text = stringResource(R.string.radar_no_data),
|
text = stringResource(R.string.radar_no_data),
|
||||||
fontSize = 18.sp,
|
fontSize = 18.sp,
|
||||||
@@ -263,7 +267,11 @@ private fun RadarScreen(uiState: RadarState, navigateUp: () -> Unit) {
|
|||||||
modifier = Modifier.padding(32.dp)
|
modifier = Modifier.padding(32.dp)
|
||||||
) {
|
) {
|
||||||
Text(text = """¯\_(ツ)_/¯""", fontSize = 32.sp)
|
Text(text = """¯\_(ツ)_/¯""", fontSize = 32.sp)
|
||||||
Text(text = stringResource(R.string.empty_list_message), fontSize = 21.sp)
|
Text(
|
||||||
|
text = stringResource(R.string.empty_list_message),
|
||||||
|
fontSize = 21.sp,
|
||||||
|
textAlign = TextAlign.Center
|
||||||
|
)
|
||||||
Text(
|
Text(
|
||||||
text = stringResource(R.string.radar_no_data),
|
text = stringResource(R.string.radar_no_data),
|
||||||
fontSize = 18.sp,
|
fontSize = 18.sp,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(21)
|
jvmToolchain(17)
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(21)
|
jvmToolchain(17)
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[versions]
|
[versions]
|
||||||
android-gradle-plugin = "9.0.0"
|
android-gradle-plugin = "9.0.0"
|
||||||
google-ksp = "2.3.2"
|
google-ksp = "2.3.2"
|
||||||
kotlin = "2.3.0"
|
kotlin = "2.3.10"
|
||||||
|
|
||||||
androidx-core-ktx = "1.17.0"
|
androidx-core-ktx = "1.17.0"
|
||||||
androidx-core-splashscreen = "1.2.0"
|
androidx-core-splashscreen = "1.2.0"
|
||||||
|
|||||||
Reference in new issue
Block a user