UI: update app name & about; polish top bars' indicators & buttons
This commit is contained in:
parent
b1bcb8126c
commit
58adb6c6a5
|
|
@ -3,7 +3,7 @@ package com.example.llama
|
|||
import android.app.Application
|
||||
import dagger.hilt.android.HiltAndroidApp
|
||||
|
||||
const val APP_NAME = "Kleidi LLama"
|
||||
const val APP_NAME = "Arm AI Playground"
|
||||
|
||||
@HiltAndroidApp
|
||||
class KleidiLlamaApplication : Application()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.example.llama.ui.scaffold.topbar
|
||||
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.icons.Icons
|
||||
|
|
@ -67,7 +68,8 @@ private fun ModelManageActionToggle(
|
|||
onToggleManaging: () -> Unit,
|
||||
) {
|
||||
FilledTonalButton(
|
||||
modifier = Modifier.padding(end = 12.dp),
|
||||
modifier = Modifier.padding(end = 8.dp),
|
||||
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 4.dp),
|
||||
onClick = onToggleManaging
|
||||
) {
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.example.llama.ui.scaffold.topbar
|
||||
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.icons.Icons
|
||||
|
|
@ -91,6 +92,7 @@ private fun MemoryIndicator(
|
|||
|
||||
OutlinedButton(
|
||||
modifier = Modifier.padding(end = 8.dp),
|
||||
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 4.dp),
|
||||
onClick = {
|
||||
onScaffoldEvent(ScaffoldEvent.ShowSnackbar(
|
||||
message = "Free RAM available: $availableGB GB\nTotal RAM on your device: $totalGB GB",
|
||||
|
|
@ -110,7 +112,7 @@ private fun MemoryIndicator(
|
|||
)
|
||||
|
||||
Text(
|
||||
modifier = Modifier.padding(start = 4.dp),
|
||||
modifier = Modifier.padding(start = 2.dp),
|
||||
text = "$availableGB / $totalGB GB",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
)
|
||||
|
|
@ -131,10 +133,11 @@ private fun TemperatureIndicator(
|
|||
TemperatureWarningLevel.MEDIUM -> "Your device is warming up to $temperatureDisplay."
|
||||
else -> "Your device's temperature is $temperatureDisplay."
|
||||
}
|
||||
val warningDismissible = temperatureMetrics.warningLevel == TemperatureWarningLevel.HIGH
|
||||
val warningDismissible = temperatureMetrics.warningLevel != TemperatureWarningLevel.HIGH
|
||||
|
||||
OutlinedButton(
|
||||
modifier = Modifier.padding(end = 8.dp),
|
||||
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 4.dp),
|
||||
onClick = {
|
||||
onScaffoldEvent(ScaffoldEvent.ShowSnackbar(
|
||||
message = temperatureWarning,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.example.llama.ui.scaffold.topbar
|
||||
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.icons.Icons
|
||||
|
|
@ -64,6 +65,7 @@ private fun StorageIndicator(
|
|||
|
||||
OutlinedButton(
|
||||
modifier = Modifier.padding(end = 8.dp),
|
||||
contentPadding = PaddingValues(horizontal = 12.dp, vertical = 4.dp),
|
||||
onClick = {
|
||||
onScaffoldEvent(ScaffoldEvent.ShowSnackbar(
|
||||
message = "Your models occupy $usedGb GB storage\nRemaining free space available: $availableGb GB",
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ fun SettingsGeneralScreen(
|
|||
Spacer(modifier = Modifier.height(8.dp))
|
||||
|
||||
Text(
|
||||
text = "Local inference for LLM models on your device powered by Arm® technologies.",
|
||||
text = "Run Large Language Models locally at your fingertips, harness the power of mobile AI with Arm®.",
|
||||
style = MaterialTheme.typography.bodyMedium
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue