mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-20 09:15:26 +02:00
Fixed colors for switch and radio button
This commit is contained in:
parent
a6f1ddee7d
commit
c4b42c764b
@ -12,7 +12,6 @@ import androidx.compose.material.ripple.rememberRipple
|
|||||||
import androidx.compose.material3.AlertDialog
|
import androidx.compose.material3.AlertDialog
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.RadioButton
|
import androidx.compose.material3.RadioButton
|
||||||
import androidx.compose.material3.RadioButtonDefaults
|
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.material3.TextButton
|
import androidx.compose.material3.TextButton
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
@ -102,11 +101,7 @@ private fun CustomDialogContentListItem(
|
|||||||
) {
|
) {
|
||||||
RadioButton(
|
RadioButton(
|
||||||
selected = selected,
|
selected = selected,
|
||||||
onClick = onClick,
|
onClick = onClick
|
||||||
colors = RadioButtonDefaults.colors(
|
|
||||||
selectedColor = MaterialTheme.colorScheme.onPrimaryContainer,
|
|
||||||
unselectedColor = MaterialTheme.colorScheme.onPrimaryContainer
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
text = label
|
text = label
|
||||||
|
@ -76,8 +76,8 @@ fun dynamicLightTheme(context: Context): ColorScheme {
|
|||||||
return lightColorScheme(
|
return lightColorScheme(
|
||||||
// Settings screen group text, units screen units group text
|
// Settings screen group text, units screen units group text
|
||||||
primary = primary,
|
primary = primary,
|
||||||
// Text color on Third party Licenses screen
|
// Switch thumb color
|
||||||
onPrimary = primary.shiftTo255(0.3f),
|
onPrimary = primary.getAppropriateTextColor(),
|
||||||
onPrimaryContainer = primary.shiftTo0(0.7f),
|
onPrimaryContainer = primary.shiftTo0(0.7f),
|
||||||
// Selected unit, group, keyboard buttons
|
// Selected unit, group, keyboard buttons
|
||||||
secondaryContainer = secondary,
|
secondaryContainer = secondary,
|
||||||
@ -132,8 +132,8 @@ fun dynamicDarkTheme(context: Context): ColorScheme {
|
|||||||
return darkColorScheme(
|
return darkColorScheme(
|
||||||
// Settings screen group text, units screen units group text
|
// Settings screen group text, units screen units group text
|
||||||
primary = primary,
|
primary = primary,
|
||||||
// Text color on Third party Licenses screen
|
// Switch thumb color
|
||||||
onPrimary = primary.shiftTo0(0.3f),
|
onPrimary = primary.getAppropriateTextColor(),
|
||||||
onPrimaryContainer = primary.shiftTo255(0.7f),
|
onPrimaryContainer = primary.shiftTo255(0.7f),
|
||||||
// Selected unit, group, keyboard buttons
|
// Selected unit, group, keyboard buttons
|
||||||
secondaryContainer = secondary,
|
secondaryContainer = secondary,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user