diff --git a/examples/llama.android/app/src/main/java/com/example/llama/KleidiLlamaApplication.kt b/examples/llama.android/app/src/main/java/com/example/llama/KleidiLlamaApplication.kt index 3698e1fcb5..79b9521e7c 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/KleidiLlamaApplication.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/KleidiLlamaApplication.kt @@ -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() diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsBrowsingTopBar.kt b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsBrowsingTopBar.kt index 8d97eec061..53c56412a1 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsBrowsingTopBar.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/ModelsBrowsingTopBar.kt @@ -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) { diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/PerformanceTopBar.kt b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/PerformanceTopBar.kt index 05458058eb..315d78e04a 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/PerformanceTopBar.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/PerformanceTopBar.kt @@ -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, diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/StorageTopBar.kt b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/StorageTopBar.kt index e8efc23d64..cf0a565756 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/StorageTopBar.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/ui/scaffold/topbar/StorageTopBar.kt @@ -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", diff --git a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/SettingsGeneralScreen.kt b/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/SettingsGeneralScreen.kt index bc34c09d46..64770631ef 100644 --- a/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/SettingsGeneralScreen.kt +++ b/examples/llama.android/app/src/main/java/com/example/llama/ui/screens/SettingsGeneralScreen.kt @@ -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 ) }