mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-30 23:30:32 +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 -> {
|
else -> {
|
||||||
item { Group(stringResource(R.string.car_group_more)) }
|
item { Group(stringResource(R.string.car_group_more)) }
|
||||||
item { WebPageSetting() }
|
item { WebPageSetting() }
|
||||||
|
item {
|
||||||
|
SwitchRow(stringResource(R.string.car_cluster_video), stringResource(R.string.car_cluster_video_note), clusterVideo) { CarSettings.setClusterVideoEnabled(it) }
|
||||||
|
}
|
||||||
item {
|
item {
|
||||||
SwitchRow(stringResource(R.string.car_experimental), stringResource(R.string.car_experimental_note), experimentalFeatures) { CarSettings.setExperimentalFeaturesEnabled(it) }
|
SwitchRow(stringResource(R.string.car_experimental), stringResource(R.string.car_experimental_note), experimentalFeatures) { CarSettings.setExperimentalFeaturesEnabled(it) }
|
||||||
}
|
}
|
||||||
if (experimentalFeatures) item {
|
if (experimentalFeatures) item {
|
||||||
Column(verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
Column(verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||||
SubGroup(stringResource(R.string.carset_experimental_heading))
|
SubGroup(stringResource(R.string.carset_experimental_heading))
|
||||||
ExperimentalFeaturesList(carSensors, adaptiveVideo, clusterVideo)
|
ExperimentalFeaturesList(carSensors, adaptiveVideo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
item {
|
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.
|
* so the list reads fine whether there's one entry or several.
|
||||||
*/
|
*/
|
||||||
@Composable
|
@Composable
|
||||||
private fun ExperimentalFeaturesList(carSensors: Boolean, adaptiveVideo: Boolean, clusterVideo: Boolean) {
|
private fun ExperimentalFeaturesList(carSensors: Boolean, adaptiveVideo: Boolean) {
|
||||||
Column(
|
Column(
|
||||||
Modifier.fillMaxWidth(),
|
Modifier.fillMaxWidth(),
|
||||||
verticalArrangement = Arrangement.spacedBy(10.dp),
|
verticalArrangement = Arrangement.spacedBy(10.dp),
|
||||||
@@ -417,11 +420,6 @@ private fun ExperimentalFeaturesList(carSensors: Boolean, adaptiveVideo: Boolean
|
|||||||
description = stringResource(R.string.carset_adaptive_note),
|
description = stringResource(R.string.carset_adaptive_note),
|
||||||
checked = adaptiveVideo,
|
checked = adaptiveVideo,
|
||||||
) { CarSettings.setAdaptiveVideoEnabled(it) }
|
) { 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.BROWSER -> BrowserSettingsRows { WebPageRow() }
|
||||||
CarGroup.MORE -> {
|
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))
|
Toggle(stringResource(R.string.car_experimental), experimental, CarSettings::setExperimentalFeaturesEnabled, note = stringResource(R.string.car_experimental_note))
|
||||||
if (experimental) {
|
if (experimental) {
|
||||||
SettingsDivider()
|
SettingsDivider()
|
||||||
@@ -503,13 +510,6 @@ private fun GroupRows(group: CarGroup) {
|
|||||||
CarSettings::setAdaptiveVideoEnabled,
|
CarSettings::setAdaptiveVideoEnabled,
|
||||||
note = stringResource(R.string.car_adaptive_video_note),
|
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