Skip to content

Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.

Redesign Settings quality slider, navbar theme mode selector, save location UI, and horizontal circular action buttons on recent files long press popup

Chethan616abb3e5600c80
diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/LiquidSlider.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/LiquidSlider.kt
index a85b194..7e662ab 100644
--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/LiquidSlider.kt
+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/LiquidSlider.kt
@@ -1,6 +1,7 @@
package com.chethan616.clearpdf.ui.components
import androidx.compose.foundation.background
+import androidx.compose.foundation.border
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
@@ -146,64 +147,19 @@ fun LiquidSlider(
translationX =
(-size.width / 2f + trackWidth * dampedDragAnimation.progress)
.fastCoerceIn(-size.width / 4f, trackWidth - size.width * 3f / 4f) * if (isLtr) 1f else -1f
+ scaleX = dampedDragAnimation.scaleX
+ scaleY = dampedDragAnimation.scaleY
+ val velocity = dampedDragAnimation.velocity / 10f
+ scaleX /= 1f - (velocity * 0.75f).fastCoerceIn(-0.2f, 0.2f)
+ scaleY *= 1f - (velocity * 0.25f).fastCoerceIn(-0.2f, 0.2f)
+ shadowElevation = 8f.dp.toPx()
+ shape = Capsule
+ clip = true
}
.then(dampedDragAnimation.modifier)
- .drawBackdrop(
- backdrop = rememberCombinedBackdrop(
- backdrop,
- rememberBackdrop(trackBackdrop) { drawBackdrop ->
- val progress = dampedDragAnimation.pressProgress
- val scaleX = lerp(2f / 3f, 1f, progress)
- val scaleY = lerp(0f, 1f, progress)
- scale(scaleX, scaleY) {
- drawBackdrop()
- }
- }
- ),
- shape = { Capsule },
- effects = {
- val progress = dampedDragAnimation.pressProgress
- blur(8f.dp.toPx() * (1f - progress))
- lens(
- 10f.dp.toPx() * progress,
- 14f.dp.toPx() * progress,
- chromaticAberration = true
- )
- },
- highlight = {
- val progress = dampedDragAnimation.pressProgress
- Highlight.Ambient.copy(
- width = Highlight.Ambient.width / 1.5f,
- blurRadius = Highlight.Ambient.blurRadius / 1.5f,
- alpha = progress
- )
- },
- shadow = {
- Shadow(
- radius = 4f.dp,
- color = Color.Black.copy(alpha = 0.05f)
- )
- },
- innerShadow = {
- val progress = dampedDragAnimation.pressProgress
- InnerShadow(
- radius = 4f.dp * progress,
- alpha = progress
- )
- },
- layerBlock = {
- scaleX = dampedDragAnimation.scaleX
- scaleY = dampedDragAnimation.scaleY
- val velocity = dampedDragAnimation.velocity / 10f
- scaleX /= 1f - (velocity * 0.75f).fastCoerceIn(-0.2f, 0.2f)
- scaleY *= 1f - (velocity * 0.25f).fastCoerceIn(-0.2f, 0.2f)
- },
- onDrawSurface = {
- val progress = dampedDragAnimation.pressProgress
- drawRect(Color.White.copy(alpha = 1f - progress))
- }
- )
- .size(40f.dp, 24f.dp)
+ .background(Color.White)
+ .border(1.5.dp, accentColor, Capsule)
+ .size(36.dp, 24.dp)
)
}
}
diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/screen/HomeScreen.kt b/app/src/main/java/com/chethan616/clearpdf/ui/screen/HomeScreen.kt
index f3e7b42..7b6ab7e 100644
--- a/app/src/main/java/com/chethan616/clearpdf/ui/screen/HomeScreen.kt
+++ b/app/src/main/java/com/chethan616/clearpdf/ui/screen/HomeScreen.kt
@@ -420,40 +420,56 @@ fun HomeScreen(
.liquidGlassPanel(backdrop, uiSensor)
.clickable { /* Consume inner taps */ }
.padding(20.dp),
- verticalArrangement = Arrangement.spacedBy(6.dp)
+ verticalArrangement = Arrangement.spacedBy(16.dp),
+ horizontalAlignment = Alignment.CenterHorizontally
) {
- // Header
+ // Header with Close Cross
Row(
- Modifier.fillMaxWidth().padding(bottom = 8.dp),
+ Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
- horizontalArrangement = Arrangement.spacedBy(12.dp)
+ horizontalArrangement = Arrangement.SpaceBetween
) {
- Box(
- Modifier
- .size(44.dp)
- .clip(RoundedCornerShape(12.dp))
- .background(Color(0xFFE53935).copy(alpha = if (isLight) 0.14f else 0.25f)),
- contentAlignment = Alignment.Center
+ Row(
+ Modifier.weight(1f),
+ verticalAlignment = Alignment.CenterVertically,
+ horizontalArrangement = Arrangement.spacedBy(12.dp)
) {
- Icon(Icons.Rounded.PictureAsPdf, null, Modifier.size(24.dp), Color(0xFFE53935))
- }
- Column(Modifier.weight(1f)) {
- BasicText(
- recent.name,
- style = TextStyle(text, 15.sp, FontWeight.SemiBold),
- maxLines = 1,
- overflow = TextOverflow.Ellipsis
- )
- val details = buildString {
- if (recent.sizeBytes > 0) append(formatFileSize(recent.sizeBytes))
- if (recent.pageCount > 0) {
+ Box(
+ Modifier
+ .size(44.dp)
+ .clip(RoundedCornerShape(12.dp))
+ .background(Color(0xFFE53935).copy(alpha = if (isLight) 0.14f else 0.25f)),
+ contentAlignment = Alignment.Center
+ ) {
+ Icon(Icons.Rounded.PictureAsPdf, null, Modifier.size(24.dp), Color(0xFFE53935))
+ }
+ Column(Modifier.weight(1f)) {
+ BasicText(
+ recent.name,
+ style = TextStyle(text, 15.sp, FontWeight.SemiBold),
+ maxLines = 1,
+ overflow = TextOverflow.Ellipsis
+ )
+ val details = buildString {
+ if (recent.sizeBytes > 0) append(formatFileSize(recent.sizeBytes))
+ if (recent.pageCount > 0) {
+ if (isNotEmpty()) append(" · ")
+ append("${recent.pageCount} pages")
+ }
if (isNotEmpty()) append(" · ")
- append("${recent.pageCount} pages")
+ append(formatTimestamp(recent.timestamp))
}
- if (isNotEmpty()) append(" · ")
- append(formatTimestamp(recent.timestamp))
+ BasicText(details, style = TextStyle(sub, 12.sp))
}
- BasicText(details, style = TextStyle(sub, 12.sp))
+ }
+
+ LiquidIconButton(
+ onClick = { selectedRecent = null },
+ backdrop = backdrop,
+ surfaceColor = if (isLight) Color.Black.copy(0.06f) else Color.White.copy(0.1f),
+ modifier = Modifier.size(32.dp)
+ ) {
+ CloseCrossIcon(Modifier.size(16.dp), sub)
}
}
@@ -465,77 +481,117 @@ fun HomeScreen(
.background(if (isLight) Color.Black.copy(0.06f) else Color.White.copy(0.08f))
)
- // Open
- ActionSheetItem(
- icon = Icons.Rounded.OpenInNew,
- label = "Open PDF",
- tint = accent,
- textColor = text,
- onClick = {
- selectedRecent = null
- onRecentFileSelected(recent.uri)
+ // Horizontal Circular Action Buttons
+ Row(
+ Modifier
+ .fillMaxWidth()
+ .padding(vertical = 4.dp),
+ horizontalArrangement = Arrangement.SpaceEvenly,
+ verticalAlignment = Alignment.CenterVertically
+ ) {
+ // 1. Open Button (Blue)
+ Column(
+ horizontalAlignment = Alignment.CenterHorizontally,
+ verticalArrangement = Arrangement.spacedBy(6.dp),
+ modifier = Modifier.clickable {
+ selectedRecent = null
+ onRecentFileSelected(recent.uri)
+ }
+ ) {
+ LiquidIconButton(
+ onClick = {
+ selectedRecent = null
+ onRecentFileSelected(recent.uri)
+ },
+ backdrop = backdrop,
+ tint = Color(0xFF0088FF),
+ modifier = Modifier.size(52.dp)
+ ) {
+ Icon(Icons.Rounded.FileOpen, null, Modifier.size(24.dp), Color.White)
+ }
+ BasicText("Open", style = TextStyle(text, 12.sp, FontWeight.Medium))
}
- )
- // Share
- ActionSheetItem(
- icon = Icons.Rounded.Share,
- label = "Share",
- tint = Color(0xFF4CAF50),
- textColor = text,
- onClick = {
- selectedRecent = null
- val shareIntent = Intent(Intent.ACTION_SEND).apply {
- type = "application/pdf"
- putExtra(Intent.EXTRA_STREAM, recent.uri)
- addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
+ // 2. Share Button (Green)
+ Column(
+ horizontalAlignment = Alignment.CenterHorizontally,
+ verticalArrangement = Arrangement.spacedBy(6.dp),
+ modifier = Modifier.clickable {
+ selectedRecent = null
+ val shareIntent = Intent(Intent.ACTION_SEND).apply {
+ type = "application/pdf"
+ putExtra(Intent.EXTRA_STREAM, recent.uri)
+ addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
+ }
+ context.startActivity(Intent.createChooser(shareIntent, "Share PDF"))
+ }
+ ) {
+ LiquidIconButton(
+ onClick = {
+ selectedRecent = null
+ val shareIntent = Intent(Intent.ACTION_SEND).apply {
+ type = "application/pdf"
+ putExtra(Intent.EXTRA_STREAM, recent.uri)
+ addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
+ }
+ context.startActivity(Intent.createChooser(shareIntent, "Share PDF"))
+ },
+ backdrop = backdrop,
+ tint = Color(0xFF4CAF50),
+ modifier = Modifier.size(52.dp)
+ ) {
+ Icon(Icons.Rounded.Share, null, Modifier.size(24.dp), Color.White)
}
- context.startActivity(
- Intent.createChooser(shareIntent, "Share PDF")
- )
+ BasicText("Share", style = TextStyle(text, 12.sp, FontWeight.Medium))
}
- )
- // File Info
- ActionSheetItem(
- icon = Icons.Rounded.Info,
- label = "File Info",
- tint = Color(0xFF7B1FA2),
- textColor = text,
- onClick = {
- selectedRecent = null
- infoRecent = recent
+ // 3. Info Button (Purple)
+ Column(
+ horizontalAlignment = Alignment.CenterHorizontally,
+ verticalArrangement = Arrangement.spacedBy(6.dp),
+ modifier = Modifier.clickable {
+ selectedRecent = null
+ infoRecent = recent
+ }
+ ) {
+ LiquidIconButton(
+ onClick = {
+ selectedRecent = null
+ infoRecent = recent
+ },
+ backdrop = backdrop,
+ tint = Color(0xFF9C27B0),
+ modifier = Modifier.size(52.dp)
+ ) {
+ Icon(Icons.Rounded.Info, null, Modifier.size(24.dp), Color.White)
+ }
+ BasicText("Details", style = TextStyle(text, 12.sp, FontWeight.Medium))
}
- )
- // Remove
- ActionSheetItem(
- icon = Icons.Rounded.RemoveCircleOutline,
- label = "Remove from Recents",
- tint = redAccent,
- textColor = redAccent,
- onClick = {
- RecentFilesManager.removeRecent(context, recent.uri)
- recents = recents.filterNot { it.uriString == recent.uri.toString() }
- selectedRecent = null
+ // 4. Remove Button (Red with Close Cross style)
+ Column(
+ horizontalAlignment = Alignment.CenterHorizontally,
+ verticalArrangement = Arrangement.spacedBy(6.dp),
+ modifier = Modifier.clickable {
+ RecentFilesManager.removeRecent(context, recent.uri)
+ recents = recents.filterNot { it.uriString == recent.uri.toString() }
+ selectedRecent = null
+ }
+ ) {
+ LiquidIconButton(
+ onClick = {
+ RecentFilesManager.removeRecent(context, recent.uri)
+ recents = recents.filterNot { it.uriString == recent.uri.toString() }
+ selectedRecent = null
+ },
+ backdrop = backdrop,
+ tint = Color(0xFFE53935),
+ modifier = Modifier.size(52.dp)
+ ) {
+ CloseCrossIcon(Modifier.size(20.dp), Color.White)
+ }
+ BasicText("Remove", style = TextStyle(redAccent, 12.sp, FontWeight.Medium))
}
- )
-
- // Cancel
- Box(
- Modifier
- .fillMaxWidth()
- .padding(top = 4.dp)
- .clip(RoundedCornerShape(12.dp))
- .background(if (isLight) Color.Black.copy(0.04f) else Color.White.copy(0.06f))
- .clickable { selectedRecent = null }
- .padding(vertical = 12.dp),
- contentAlignment = Alignment.Center
- ) {
- BasicText(
- "Cancel",
- style = TextStyle(sub, 14.sp, FontWeight.Medium)
- )
}
}
}
diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt b/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt
index c25984f..c936d74 100644
--- a/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt
+++ b/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt
@@ -242,7 +242,7 @@ fun SettingsScreen(
BasicText("Appearance", style = TextStyle(text, 17.sp, fontWeight = FontWeight.SemiBold))
}
- // Segmented pill selector
+ // Navbar-like segmented theme mode bar
Row(
Modifier
.fillMaxWidth()
@@ -259,17 +259,16 @@ fun SettingsScreen(
)
options.forEach { option ->
val isSelected = themeMode == option.idx
- val pillColor = when {
- isSelected && option.idx == 2 -> Color(0xFF5C6BC0)
- isSelected && option.idx == 1 -> Color(0xFFFFA726)
- isSelected -> Color(0xFF0088FF)
- else -> Color.Transparent
+ val activeColor = when (option.idx) {
+ 1 -> Color(0xFFFFA726)
+ 2 -> Color(0xFF7C4DFF)
+ else -> Color(0xFF0088FF)
}
Row(
Modifier
.weight(1f)
.clip(RoundedCornerShape(12.dp))
- .background(if (isSelected) pillColor.copy(0.18f) else Color.Transparent)
+ .background(if (isSelected) activeColor else Color.Transparent)
.clickable { onThemeModeChanged(option.idx) }
.padding(vertical = 10.dp),
horizontalArrangement = Arrangement.Center,
@@ -277,15 +276,15 @@ fun SettingsScreen(
) {
Icon(
option.icon, null,
- Modifier.size(16.dp),
- if (isSelected) pillColor else sub
+ Modifier.size(17.dp),
+ if (isSelected) Color.White else sub
)
Spacer(Modifier.width(6.dp))
BasicText(
option.label,
style = TextStyle(
- if (isSelected) pillColor else sub,
- 12.sp,
+ if (isSelected) Color.White else sub,
+ 13.sp,
fontWeight = if (isSelected) FontWeight.Bold else FontWeight.Medium
)
)
@@ -319,46 +318,52 @@ fun SettingsScreen(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(8.dp)
) {
- Icon(Icons.Rounded.FolderOpen, null, Modifier.size(22.dp), label)
+ Icon(Icons.Rounded.FolderOpen, null, Modifier.size(22.dp), Color(0xFF1976D2))
BasicText("Save Location", style = TextStyle(text, 17.sp, fontWeight = FontWeight.SemiBold))
}
Row(
Modifier
.fillMaxWidth()
- .clip(RoundedCornerShape(12.dp))
+ .clip(RoundedCornerShape(16.dp))
.background(if (isLight) Color.Black.copy(0.03f) else Color.White.copy(0.05f))
+ .border(1.dp, if (isLight) Color.Black.copy(0.05f) else Color.White.copy(0.08f), RoundedCornerShape(16.dp))
.padding(14.dp),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(12.dp)
) {
Box(
- Modifier.size(36.dp).clip(CircleShape)
- .background(Color(0xFF1976D2).copy(0.12f)),
+ Modifier
+ .size(40.dp)
+ .clip(CircleShape)
+ .background(Color(0xFF1976D2).copy(0.14f)),
contentAlignment = Alignment.Center
) {
- Icon(Icons.Rounded.FolderOpen, null, Modifier.size(18.dp), Color(0xFF1976D2))
+ Icon(Icons.Rounded.FolderOpen, null, Modifier.size(20.dp), Color(0xFF1976D2))
}
Column(Modifier.weight(1f)) {
BasicText(
- if (saveUri != null) "Custom Location" else "Default (Downloads)",
- style = TextStyle(label, 14.sp, fontWeight = FontWeight.Medium)
+ if (saveUri != null) "Custom Output Directory" else "Default Directory",
+ style = TextStyle(label, 14.sp, fontWeight = FontWeight.SemiBold)
)
- if (saveUri != null) {
- val path = saveUri!!.lastPathSegment?.replace("primary:", "") ?: saveUri.toString()
- BasicText(path, style = TextStyle(sub, 11.sp))
- } else {
- BasicText("PDFs saved to Downloads folder", style = TextStyle(sub, 11.sp))
- }
+ val path = if (saveUri != null) {
+ saveUri!!.lastPathSegment?.replace("primary:", "") ?: saveUri.toString()
+ } else "Downloads / ClearPDF"
+ BasicText(path, style = TextStyle(sub, 12.sp))
}
}
- Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {
+ Row(
+ Modifier.fillMaxWidth(),
+ horizontalArrangement = Arrangement.spacedBy(10.dp)
+ ) {
LiquidButton(
onClick = { folderPicker.launch(null) },
- backdrop = backdrop, tint = Color(0xFF1976D2)
+ backdrop = backdrop,
+ tint = Color(0xFF1976D2),
+ modifier = Modifier.weight(1f)
) {
- BasicText("Choose Folder", style = TextStyle(Color.White, 13.sp, fontWeight = FontWeight.Medium))
+ BasicText("Change Folder", style = TextStyle(Color.White, 13.sp, fontWeight = FontWeight.SemiBold))
}
if (saveUri != null) {
LiquidButton(
@@ -366,9 +371,10 @@ fun SettingsScreen(
SaveLocationManager.clearSaveLocation(context)
saveUri = null
},
- backdrop = backdrop, surfaceColor = Color.White.copy(0.08f)
+ backdrop = backdrop,
+ surfaceColor = Color.White.copy(0.08f)
) {
- BasicText("Reset", style = TextStyle(text, 13.sp, fontWeight = FontWeight.Medium))
+ BasicText("Reset", style = TextStyle(text, 13.sp, fontWeight = FontWeight.SemiBold))
}
}
}
@@ -452,94 +458,48 @@ fun SettingsScreen(
.padding(20.dp),
verticalArrangement = Arrangement.spacedBy(14.dp)
) {
- Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
- Icon(Icons.Rounded.HighQuality, null, Modifier.size(22.dp), Color(0xFF1976D2))
- BasicText("Default Quality", style = TextStyle(text, 17.sp, fontWeight = FontWeight.SemiBold))
- }
-
- // Quality presets as segmented glass pills
Row(
- Modifier
- .fillMaxWidth()
- .clip(RoundedCornerShape(14.dp))
- .background(if (isLight) Color.Black.copy(0.04f) else Color.White.copy(0.06f))
- .padding(4.dp),
- horizontalArrangement = Arrangement.spacedBy(4.dp)
+ Modifier.fillMaxWidth(),
+ verticalAlignment = Alignment.CenterVertically,
+ horizontalArrangement = Arrangement.SpaceBetween
) {
- data class QualityPreset(val target: Float, val title: String, val desc: String, val color: Color)
- val qualities = listOf(
- QualityPreset(0.15f, "Low", "Smallest", Color(0xFF4CAF50)),
- QualityPreset(0.5f, "Medium", "Balanced", Color(0xFF2196F3)),
- QualityPreset(0.85f, "High", "Best", Color(0xFF9C27B0))
- )
- qualities.forEach { preset ->
- val isSelected = when {
- preset.target < 0.33f -> defaultQuality < 0.33f
- preset.target < 0.66f -> defaultQuality in 0.33f..0.66f
- else -> defaultQuality > 0.66f
- }
- Column(
- Modifier
- .weight(1f)
- .clip(RoundedCornerShape(10.dp))
- .background(if (isSelected) preset.color.copy(0.15f) else Color.Transparent)
- .clickable { defaultQuality = preset.target }
- .padding(vertical = 10.dp),
- horizontalAlignment = Alignment.CenterHorizontally,
- verticalArrangement = Arrangement.spacedBy(2.dp)
- ) {
- BasicText(
- preset.title,
- style = TextStyle(
- if (isSelected) preset.color else sub,
- 13.sp,
- fontWeight = if (isSelected) FontWeight.Bold else FontWeight.Medium
- )
- )
- BasicText(
- preset.desc,
- style = TextStyle(
- if (isSelected) preset.color.copy(0.7f) else sub.copy(0.6f),
- 10.sp
- )
- )
- }
+ Row(
+ verticalAlignment = Alignment.CenterVertically,
+ horizontalArrangement = Arrangement.spacedBy(8.dp)
+ ) {
+ Icon(Icons.Rounded.HighQuality, null, Modifier.size(22.dp), Color(0xFF1976D2))
+ BasicText("Compression Quality", style = TextStyle(text, 17.sp, fontWeight = FontWeight.SemiBold))
+ }
+ Box(
+ Modifier
+ .clip(RoundedCornerShape(8.dp))
+ .background(Color(0xFF1976D2).copy(0.14f))
+ .padding(horizontal = 10.dp, vertical = 4.dp)
+ ) {
+ BasicText(
+ "${(defaultQuality * 100).toInt()}%",
+ style = TextStyle(Color(0xFF1976D2), 13.sp, fontWeight = FontWeight.Bold)
+ )
}
}
- // Fine-tune slider
- Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
- Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) {
- BasicText("Fine-tune", style = TextStyle(sub, 12.sp))
- Box(
- Modifier
- .clip(RoundedCornerShape(6.dp))
- .background(Color(0xFF1976D2).copy(0.12f))
- .padding(horizontal = 8.dp, vertical = 2.dp)
- ) {
- BasicText(
- "${(defaultQuality * 100).toInt()}%",
- style = TextStyle(Color(0xFF1976D2), 12.sp, fontWeight = FontWeight.Bold)
- )
+ LiquidSlider(
+ value = { defaultQuality },
+ onValueChange = {
+ val snapped = ((it * 100f).toInt() / 100f).coerceIn(0f, 1f)
+ if (snapped != defaultQuality) {
+ defaultQuality = snapped
}
- }
- LiquidSlider(
- value = { defaultQuality },
- onValueChange = {
- val snapped = ((it * 100f).toInt() / 100f).coerceIn(0f, 1f)
- if (snapped != defaultQuality) {
- defaultQuality = snapped
- }
- },
- valueRange = 0f..1f,
- visibilityThreshold = 0.005f,
- backdrop = backdrop,
- modifier = Modifier.fillMaxWidth()
- )
- Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) {
- BasicText("Smaller file", style = TextStyle(sub.copy(0.6f), 11.sp))
- BasicText("Better quality", style = TextStyle(sub.copy(0.6f), 11.sp))
- }
+ },
+ valueRange = 0f..1f,
+ visibilityThreshold = 0.005f,
+ backdrop = backdrop,
+ modifier = Modifier.fillMaxWidth()
+ )
+
+ Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) {
+ BasicText("Smaller file size", style = TextStyle(sub.copy(0.7f), 11.sp))
+ BasicText("Higher image clarity", style = TextStyle(sub.copy(0.7f), 11.sp))
}
}