mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-30 23:30:32 +01:00
Size goes down to Small and Extra small, for wide, short car screens
On a wide, short screen such as 1600x600, the buttons over the map and in the player take too much of the height. Lowering the display density shrinks them, but it shrinks the map with them. Size scales only Gearslip's own UI, so Small (0.8) and Extra small (0.65) make the buttons smaller and leave the map alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4e3f8e6657
commit
de5e9fef6a
3 files changed
+4
-2
No files matched your search
@@ -110,7 +110,7 @@ fun CarSettingsScreen() {
|
||||
item {
|
||||
ChoiceRow(
|
||||
stringResource(R.string.car_size),
|
||||
listOf(1f to stringResource(R.string.choice_size_normal), 1.25f to stringResource(R.string.choice_size_large), 1.5f to stringResource(R.string.choice_size_xlarge)),
|
||||
listOf(0.65f to stringResource(R.string.choice_size_xsmall), 0.8f to stringResource(R.string.choice_size_small), 1f to stringResource(R.string.choice_size_normal), 1.25f to stringResource(R.string.choice_size_large), 1.5f to stringResource(R.string.choice_size_xlarge)),
|
||||
scale,
|
||||
) { CarSettings.setScale(it) }
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ enum class CarGroup(@param:StringRes val title: Int) {
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun sizeChoices() = listOf(1f to stringResource(R.string.choice_size_normal), 1.25f to stringResource(R.string.choice_size_large), 1.5f to stringResource(R.string.choice_size_xlarge))
|
||||
private fun sizeChoices() = listOf(0.65f to stringResource(R.string.choice_size_xsmall), 0.8f to stringResource(R.string.choice_size_small), 1f to stringResource(R.string.choice_size_normal), 1.25f to stringResource(R.string.choice_size_large), 1.5f to stringResource(R.string.choice_size_xlarge))
|
||||
|
||||
/** Marks the menu's Custom entry, which opens [CustomDensityDialog] instead of choosing. */
|
||||
private const val DENSITY_CUSTOM = -1
|
||||
|
||||
@@ -165,6 +165,8 @@
|
||||
<string name="car_group_sound">Sound and voice</string>
|
||||
<string name="car_group_warnings">Warnings</string>
|
||||
<string name="car_group_more">More</string>
|
||||
<string name="choice_size_xsmall">Extra small</string>
|
||||
<string name="choice_size_small">Small</string>
|
||||
<string name="choice_size_normal">Normal</string>
|
||||
<string name="choice_size_large">Large</string>
|
||||
<string name="choice_size_xlarge">Extra large</string>
|
||||
|
||||
Reference in new issue
Block a user