@@ -3,7 +3,6 @@ package dev.johnoreilly.climatetrace.ui
3
3
import androidx.compose.animation.AnimatedVisibility
4
4
import androidx.compose.animation.fadeIn
5
5
import androidx.compose.animation.fadeOut
6
- import androidx.compose.foundation.background
7
6
import androidx.compose.foundation.clickable
8
7
import androidx.compose.foundation.layout.Arrangement
9
8
import androidx.compose.foundation.layout.Box
@@ -28,6 +27,7 @@ import androidx.compose.material3.Icon
28
27
import androidx.compose.material3.IconButton
29
28
import androidx.compose.material3.MaterialTheme
30
29
import androidx.compose.material3.SearchBar
30
+ import androidx.compose.material3.SearchBarDefaults
31
31
import androidx.compose.material3.Text
32
32
import androidx.compose.material3.VerticalDivider
33
33
import androidx.compose.material3.adaptive.currentWindowAdaptiveInfo
@@ -98,7 +98,7 @@ fun CountryScreenSuccess(countryList: List<Country>) {
98
98
if (windowSizeClass.windowWidthSizeClass == WindowWidthSizeClass .COMPACT ) {
99
99
Column (Modifier .fillMaxWidth()) {
100
100
Box (
101
- Modifier .height(250 .dp).fillMaxWidth().background(color = Color . LightGray )
101
+ Modifier .height(250 .dp).fillMaxWidth()
102
102
) {
103
103
CountryListView (
104
104
countryList = countryList,
@@ -225,7 +225,7 @@ fun SearchableList(
225
225
},
226
226
active = true ,
227
227
onActiveChange = {},
228
- tonalElevation = 0 .dp
228
+ colors = SearchBarDefaults .colors(containerColor = MaterialTheme .colorScheme.background),
229
229
)
230
230
}
231
231
0 commit comments