Skip to content

Commit

Permalink
Update production chip color (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanshg authored Feb 1, 2024
1 parent 4c455bb commit 6c6ccb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.material3.BadgedBox
import androidx.compose.material3.Button
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FilterChip
import androidx.compose.material3.FilterChipDefaults.filterChipColors
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -372,6 +373,9 @@ private fun TopBar(
selected = uiState.isProduction,
onClick = viewModel::toggleEnvironment,
label = { Text(stringResource(id = uiState.environmentName)) },
colors = filterChipColors(
selectedContainerColor = MaterialTheme.colorScheme.tertiary,
),
)
if (isJobsScreenSelected) {
PlainTooltipBox(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment.Companion.Center
import androidx.compose.ui.Modifier
import androidx.lifecycle.compose.collectAsStateWithLifecycle
Expand All @@ -22,8 +23,8 @@ fun OrchestratedJobsScreen(
factory = viewModelFactory { JobsViewModel(isProduction) },
),
) {
val uiState = viewModel.uiState.collectAsStateWithLifecycle().value
val jobs = viewModel.jobs.collectAsStateWithLifecycle().value
val uiState by viewModel.uiState.collectAsStateWithLifecycle()
val jobs by viewModel.jobs.collectAsStateWithLifecycle()
Box(
contentAlignment = Center,
modifier = modifier
Expand Down

0 comments on commit 6c6ccb4

Please sign in to comment.