Skip to content

Commit

Permalink
use the GodToolsTheme property to set search bar colors
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Jul 26, 2023
1 parent d96847f commit 9d624e7
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.ListItem
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.material3.SearchBar
import androidx.compose.material3.SearchBarDefaults
import androidx.compose.material3.Switch
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -76,12 +74,7 @@ fun DownloadableLanguagesLayout(
onSearch = updateSearchQuery,
active = false,
onActiveChange = {},
colors = when {
GodToolsTheme.isLightColorSchemeActive -> SearchBarDefaults.colors(
containerColor = MaterialTheme.colorScheme.surfaceVariant
)
else -> SearchBarDefaults.colors()
},
colors = GodToolsTheme.searchBarColors,
leadingIcon = {
IconButton(
onClick = { onEvent(DownloadableLanguagesEvent.NavigateUp) },
Expand Down

0 comments on commit 9d624e7

Please sign in to comment.