mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Fixed wrongly used colors
This commit is contained in:
parent
e034e7bfb7
commit
e79ecedfcc
@ -52,7 +52,7 @@ fun UnitsList(
|
||||
.padding(vertical = 12.dp, horizontal = 8.dp),
|
||||
text = stringResource(id = unitGroup.res),
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onPrimaryContainer
|
||||
color = MaterialTheme.colorScheme.primary
|
||||
)
|
||||
}
|
||||
items(items = listOfUnits, key = { it.unitId }) { unit ->
|
||||
|
@ -70,7 +70,7 @@ fun AlertDialogWithList(
|
||||
},
|
||||
confirmButton = {
|
||||
TextButton(onClick = dismissAction) {
|
||||
Text(text = dismissButtonLabel, color = MaterialTheme.colorScheme.onPrimaryContainer)
|
||||
Text(text = dismissButtonLabel, color = MaterialTheme.colorScheme.primary)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
@ -89,7 +89,7 @@ fun SettingsScreen(
|
||||
.padding(start = 16.dp, end = 16.dp, top = 24.dp, bottom = 12.dp),
|
||||
text = stringResource(id = R.string.general_settings_group),
|
||||
style = MaterialTheme.typography.titleSmall,
|
||||
color = MaterialTheme.colorScheme.onPrimaryContainer
|
||||
color = MaterialTheme.colorScheme.primary
|
||||
)
|
||||
SettingsListItem(
|
||||
label = stringResource(R.string.precision_setting),
|
||||
@ -123,7 +123,7 @@ fun SettingsScreen(
|
||||
.padding(start = 16.dp, end = 16.dp, top = 24.dp, bottom = 12.dp),
|
||||
text = stringResource(id = R.string.additional_settings_group),
|
||||
style = MaterialTheme.typography.titleSmall,
|
||||
color = MaterialTheme.colorScheme.onPrimaryContainer
|
||||
color = MaterialTheme.colorScheme.primary
|
||||
)
|
||||
SettingsListItem(
|
||||
label = stringResource(R.string.terms_and_conditions),
|
||||
|
@ -75,9 +75,10 @@ fun dynamicLightTheme(context: Context): ColorScheme {
|
||||
|
||||
return lightColorScheme(
|
||||
// Settings screen group text, units screen units group text
|
||||
primary = primary.shiftTo0(0.7f),
|
||||
primary = primary,
|
||||
// Text color on Third party Licenses screen
|
||||
onPrimary = primary.shiftTo255(0.3f),
|
||||
onPrimaryContainer = primary.shiftTo0(0.7f),
|
||||
// Selected unit, group, keyboard buttons
|
||||
secondaryContainer = secondary,
|
||||
onSecondaryContainer = secondary.getAppropriateTextColor(),
|
||||
@ -130,9 +131,10 @@ fun dynamicDarkTheme(context: Context): ColorScheme {
|
||||
|
||||
return darkColorScheme(
|
||||
// Settings screen group text, units screen units group text
|
||||
primary = primary.shiftTo255(0.7f),
|
||||
primary = primary,
|
||||
// Text color on Third party Licenses screen
|
||||
onPrimary = primary.shiftTo0(0.3f),
|
||||
onPrimaryContainer = primary.shiftTo255(0.7f),
|
||||
// Selected unit, group, keyboard buttons
|
||||
secondaryContainer = secondary,
|
||||
onSecondaryContainer = secondary.getAppropriateTextColor(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user