feat: add 21:9 aspect ratio and adjust UI
This commit is contained in:
1 parent
8d105eaa09
commit
d970a4ce99
2 files changed
+3
-2
No files matched your search
@@ -16,6 +16,7 @@ enum class AspectRatio(val widthRatio: Int, val heightRatio: Int) {
|
||||
RATIO_4_3(4, 3),
|
||||
RATIO_16_9(16, 9),
|
||||
RATIO_1_1(1, 1),
|
||||
RATIO_21_9(21, 9),
|
||||
XPAN(65, 24);
|
||||
|
||||
fun getValue(isLandscape: Boolean): Float {
|
||||
|
||||
@@ -122,7 +122,7 @@ fun CameraTopSheet(
|
||||
SectionLabel(title = stringResource(R.string.aspect_ratio))
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.spacedBy(10.dp)
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
||||
) {
|
||||
AspectRatio.entries.forEach { ratio ->
|
||||
val isSelected = aspectRatio == ratio
|
||||
@@ -142,7 +142,7 @@ fun CameraTopSheet(
|
||||
Text(
|
||||
text = ratio.getDisplayName(),
|
||||
color = if (isSelected) Color.Black else Color.White,
|
||||
fontSize = 13.sp,
|
||||
fontSize = 11.sp,
|
||||
fontWeight = if (isSelected) FontWeight.Bold else FontWeight.Medium
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user