@@ -3,7 +3,6 @@ package dev.johnoreilly.climatetrace.ui
33import androidx.compose.animation.AnimatedVisibility
44import androidx.compose.animation.fadeIn
55import androidx.compose.animation.fadeOut
6- import androidx.compose.foundation.background
76import androidx.compose.foundation.clickable
87import androidx.compose.foundation.layout.Arrangement
98import androidx.compose.foundation.layout.Box
@@ -28,6 +27,7 @@ import androidx.compose.material3.Icon
2827import androidx.compose.material3.IconButton
2928import androidx.compose.material3.MaterialTheme
3029import androidx.compose.material3.SearchBar
30+ import androidx.compose.material3.SearchBarDefaults
3131import androidx.compose.material3.Text
3232import androidx.compose.material3.VerticalDivider
3333import androidx.compose.material3.adaptive.currentWindowAdaptiveInfo
@@ -98,7 +98,7 @@ fun CountryScreenSuccess(countryList: List<Country>) {
9898 if (windowSizeClass.windowWidthSizeClass == WindowWidthSizeClass .COMPACT ) {
9999 Column (Modifier .fillMaxWidth()) {
100100 Box (
101- Modifier .height(250 .dp).fillMaxWidth().background(color = Color . LightGray )
101+ Modifier .height(250 .dp).fillMaxWidth()
102102 ) {
103103 CountryListView (
104104 countryList = countryList,
@@ -225,7 +225,7 @@ fun SearchableList(
225225 },
226226 active = true ,
227227 onActiveChange = {},
228- tonalElevation = 0 .dp
228+ colors = SearchBarDefaults .colors(containerColor = MaterialTheme .colorScheme.background),
229229 )
230230}
231231
0 commit comments