Skip to content

Commit

Permalink
#121 테마 시스템 컬러 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
laco-dev committed Jul 27, 2023
1 parent c2adda3 commit f3710a9
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
Expand Down Expand Up @@ -58,13 +57,13 @@ private fun LightDarkThemeCard(darkTheme: Boolean = LocalDarkTheme.current) {
AppCompatDelegate.setDefaultNightMode(mode)
}

CompositionLocalProvider(LocalContentColor provides Color(0xFF000000)) {
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.onPrimaryContainer) {
KnightsCard {
Column {
Text(
text = stringResource(id = R.string.setting),
style = KnightsTheme.typography.headlineSmallBL,
modifier = Modifier.padding(top = 24.dp, start = 24.dp)
modifier = Modifier.padding(top = 24.dp, start = 24.dp),
)
Spacer(modifier = Modifier.height(40.dp))

Expand Down Expand Up @@ -129,8 +128,8 @@ private fun ThemeCard(
selected = selected,
onClick = onClick,
colors = RadioButtonDefaults.colors(
selectedColor = Color(0xFF000000),
unselectedColor = Color(0xFF5E5E5E)
selectedColor = MaterialTheme.colorScheme.onPrimaryContainer,
unselectedColor = MaterialTheme.colorScheme.onSurface,
)
)
}
Expand Down

0 comments on commit f3710a9

Please sign in to comment.