mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-12-01 07:40:31 +01:00
The turn card on the cluster screen moves out of experimental features into the car settings, still off by default
This commit is contained in:
1 parent
dccdd2eeba
commit
676b5d3ea9
2 files changed
+12
-14
No files matched your search
@@ -241,13 +241,16 @@ fun CarSettingsScreen() {
|
||||
else -> {
|
||||
item { Group(stringResource(R.string.car_group_more)) }
|
||||
item { WebPageSetting() }
|
||||
item {
|
||||
SwitchRow(stringResource(R.string.car_cluster_video), stringResource(R.string.car_cluster_video_note), clusterVideo) { CarSettings.setClusterVideoEnabled(it) }
|
||||
}
|
||||
item {
|
||||
SwitchRow(stringResource(R.string.car_experimental), stringResource(R.string.car_experimental_note), experimentalFeatures) { CarSettings.setExperimentalFeaturesEnabled(it) }
|
||||
}
|
||||
if (experimentalFeatures) item {
|
||||
Column(verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||
SubGroup(stringResource(R.string.carset_experimental_heading))
|
||||
ExperimentalFeaturesList(carSensors, adaptiveVideo, clusterVideo)
|
||||
ExperimentalFeaturesList(carSensors, adaptiveVideo)
|
||||
}
|
||||
}
|
||||
item {
|
||||
@@ -402,7 +405,7 @@ private fun <T> ChoiceButtons(options: List<Pair<T, String>>, selected: T, onSel
|
||||
* so the list reads fine whether there's one entry or several.
|
||||
*/
|
||||
@Composable
|
||||
private fun ExperimentalFeaturesList(carSensors: Boolean, adaptiveVideo: Boolean, clusterVideo: Boolean) {
|
||||
private fun ExperimentalFeaturesList(carSensors: Boolean, adaptiveVideo: Boolean) {
|
||||
Column(
|
||||
Modifier.fillMaxWidth(),
|
||||
verticalArrangement = Arrangement.spacedBy(10.dp),
|
||||
@@ -417,11 +420,6 @@ private fun ExperimentalFeaturesList(carSensors: Boolean, adaptiveVideo: Boolean
|
||||
description = stringResource(R.string.carset_adaptive_note),
|
||||
checked = adaptiveVideo,
|
||||
) { CarSettings.setAdaptiveVideoEnabled(it) }
|
||||
SwitchRow(
|
||||
title = stringResource(R.string.car_cluster_video),
|
||||
description = stringResource(R.string.car_cluster_video_note),
|
||||
checked = clusterVideo,
|
||||
) { CarSettings.setClusterVideoEnabled(it) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -487,6 +487,13 @@ private fun GroupRows(group: CarGroup) {
|
||||
}
|
||||
CarGroup.BROWSER -> BrowserSettingsRows { WebPageRow() }
|
||||
CarGroup.MORE -> {
|
||||
Toggle(
|
||||
stringResource(R.string.car_cluster_video),
|
||||
clusterVideo,
|
||||
CarSettings::setClusterVideoEnabled,
|
||||
note = stringResource(R.string.car_cluster_video_note),
|
||||
)
|
||||
SettingsDivider()
|
||||
Toggle(stringResource(R.string.car_experimental), experimental, CarSettings::setExperimentalFeaturesEnabled, note = stringResource(R.string.car_experimental_note))
|
||||
if (experimental) {
|
||||
SettingsDivider()
|
||||
@@ -503,13 +510,6 @@ private fun GroupRows(group: CarGroup) {
|
||||
CarSettings::setAdaptiveVideoEnabled,
|
||||
note = stringResource(R.string.car_adaptive_video_note),
|
||||
)
|
||||
SettingsDivider()
|
||||
Toggle(
|
||||
stringResource(R.string.car_cluster_video),
|
||||
clusterVideo,
|
||||
CarSettings::setClusterVideoEnabled,
|
||||
note = stringResource(R.string.car_cluster_video_note),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user