Migrate SettingsScreen to new commons naming
This commit is contained in:
parent
2e1821320f
commit
62484fd3c7
|
@ -38,11 +38,11 @@ internal fun SettingsScreen(
|
||||||
SettingsTitleTextComponent(text = stringResource(id = R.string.color_customization))
|
SettingsTitleTextComponent(text = stringResource(id = R.string.color_customization))
|
||||||
}) {
|
}) {
|
||||||
SettingsPreferenceComponent(
|
SettingsPreferenceComponent(
|
||||||
preferenceTitle = stringResource(id = R.string.customize_colors),
|
label = stringResource(id = R.string.customize_colors),
|
||||||
doOnPreferenceClick = customizeColors,
|
doOnPreferenceClick = customizeColors,
|
||||||
)
|
)
|
||||||
SettingsPreferenceComponent(
|
SettingsPreferenceComponent(
|
||||||
preferenceTitle = stringResource(id = R.string.customize_widget_colors),
|
label = stringResource(id = R.string.customize_widget_colors),
|
||||||
doOnPreferenceClick = customizeWidgetColors
|
doOnPreferenceClick = customizeWidgetColors
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -53,34 +53,34 @@ internal fun SettingsScreen(
|
||||||
|
|
||||||
if (isTiramisuPlus()) {
|
if (isTiramisuPlus()) {
|
||||||
SettingsPreferenceComponent(
|
SettingsPreferenceComponent(
|
||||||
preferenceTitle = stringResource(id = R.string.language),
|
label = stringResource(id = R.string.language),
|
||||||
preferenceSummary = displayLanguage,
|
value = displayLanguage,
|
||||||
doOnPreferenceClick = onSetupLanguagePress,
|
doOnPreferenceClick = onSetupLanguagePress,
|
||||||
preferenceSummaryColor = MaterialTheme.colorScheme.onSurface,
|
preferenceValueColor = MaterialTheme.colorScheme.onSurface,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
SettingsCheckBoxComponent(
|
SettingsCheckBoxComponent(
|
||||||
title = stringResource(id = R.string.turn_flashlight_on),
|
label = stringResource(id = R.string.turn_flashlight_on),
|
||||||
initialValue = turnFlashlightOnStartupChecked,
|
initialValue = turnFlashlightOnStartupChecked,
|
||||||
onChange = onTurnFlashlightOnStartupPress
|
onChange = onTurnFlashlightOnStartupPress
|
||||||
)
|
)
|
||||||
SettingsCheckBoxComponent(
|
SettingsCheckBoxComponent(
|
||||||
title = stringResource(id = R.string.force_portrait_mode),
|
label = stringResource(id = R.string.force_portrait_mode),
|
||||||
initialValue = forcePortraitModeChecked,
|
initialValue = forcePortraitModeChecked,
|
||||||
onChange = onForcePortraitModePress
|
onChange = onForcePortraitModePress
|
||||||
)
|
)
|
||||||
SettingsCheckBoxComponent(
|
SettingsCheckBoxComponent(
|
||||||
title = stringResource(id = R.string.show_bright_display),
|
label = stringResource(id = R.string.show_bright_display),
|
||||||
initialValue = showBrightDisplayButtonChecked,
|
initialValue = showBrightDisplayButtonChecked,
|
||||||
onChange = onShowBrightDisplayButtonPress
|
onChange = onShowBrightDisplayButtonPress
|
||||||
)
|
)
|
||||||
SettingsCheckBoxComponent(
|
SettingsCheckBoxComponent(
|
||||||
title = stringResource(id = R.string.show_sos),
|
label = stringResource(id = R.string.show_sos),
|
||||||
initialValue = showSosButtonChecked,
|
initialValue = showSosButtonChecked,
|
||||||
onChange = onShowSosButtonPress
|
onChange = onShowSosButtonPress
|
||||||
)
|
)
|
||||||
SettingsCheckBoxComponent(
|
SettingsCheckBoxComponent(
|
||||||
title = stringResource(id = R.string.show_stroboscope),
|
label = stringResource(id = R.string.show_stroboscope),
|
||||||
initialValue = showStroboscopeButtonChecked,
|
initialValue = showStroboscopeButtonChecked,
|
||||||
onChange = onShowStroboscopeButtonPress
|
onChange = onShowStroboscopeButtonPress
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue