Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.
Rust androiddocument-scannerdocximage-editorjetpack-composekotlinliquid-glassofflineopen-sourcepdfpdf-compressorpdf-editorpdf-mergerpdf-readerpdf-splitterpdf-toolspdf-viewerpptxspreadsheet-editorxlsx
Notes: steady veil and theme-aware shade on #176; larger screens; Reduce transparency (#175, #157, #158)
chethan616513fd53a3436
diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/Adaptive.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/Adaptive.ktnew file mode 100644index 0000000..a991137--- /dev/null+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/Adaptive.kt@@ -0,0 +1,38 @@+package com.chethan616.clearpdf.ui++import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.widthIn+import androidx.compose.foundation.layout.wrapContentWidth+import androidx.compose.foundation.lazy.staggeredgrid.StaggeredGridCells+import androidx.compose.runtime.Composable+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.platform.LocalConfiguration+import androidx.compose.ui.unit.Dp+import androidx.compose.ui.unit.dp++/*+ * Larger screens (#157): a tablet or an unfolded phone is not a wider phone. Everything here leaves a+ * phone exactly as it is: each rule only starts past the widest phone.+ */++/** The widest a screen of rows and text grows (dp) before it is held to a column in the middle. */+val ReadableWidth: Dp = 720.dp++/**+ * A screen's content as a column: the full width on a phone; on a wider screen, at most [max] in the+ * middle, so its rows, fields and lines of text don't run from one edge of a tablet to the other.+ */+fun Modifier.screenColumn(max: Dp = ReadableWidth): Modifier =+ fillMaxWidth().wrapContentWidth(Alignment.CenterHorizontally).widthIn(max = max).fillMaxWidth()++/** The widest a phone is in dp, as Android's own window size classes have it (compact < 600). */+const val PhoneMaxWidthDp = 600++/**+ * The desk's columns: two on a phone, as always; on a wider screen as many as fit at a phone card's+ * size or more (three on a tablet upright, four turned), where two were stretched across it.+ */+@Composable+fun deskColumns(): StaggeredGridCells =+ if (LocalConfiguration.current.screenWidthDp < PhoneMaxWidthDp) StaggeredGridCells.Fixed(2) else StaggeredGridCells.Adaptive(260.dp)diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/FilesScreen.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/FilesScreen.ktindex b671d68..5cba8c6 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/FilesScreen.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/FilesScreen.kt@@ -52,6 +52,7 @@ import androidx.compose.ui.unit.dpimport com.chethan616.clearpdf.Rimport com.chethan616.clearpdf.ui.AppViewModelimport com.chethan616.clearpdf.ui.LucideIcons+import com.chethan616.clearpdf.ui.screenColumnimport com.chethan616.clearpdf.ui.glass.GlassCircleimport com.chethan616.clearpdf.ui.glass.GlassDialogimport com.chethan616.clearpdf.ui.glass.GlassIcon@@ -140,7 +141,7 @@ fun FilesScreen(vm: AppViewModel, onBrowse: () -> Unit) {)val internal = stringResource(R.string.home_internal_storage)LazyColumn(- modifier = Modifier.fillMaxSize().windowInsetsPadding(WindowInsets.safeDrawing.only(WindowInsetsSides.Top)),+ modifier = Modifier.fillMaxSize().screenColumn().windowInsetsPadding(WindowInsets.safeDrawing.only(WindowInsetsSides.Top)),contentPadding = PaddingValues(bottom = DockClearance),) {item(key = "header") {diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.ktindex bd0b35c..6252b4c 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/desk/SettingsScreen.kt@@ -66,6 +66,7 @@ import androidx.compose.ui.unit.spimport com.chethan616.clearpdf.Rimport com.chethan616.clearpdf.ui.AppViewModelimport com.chethan616.clearpdf.ui.LucideIcons+import com.chethan616.clearpdf.ui.screenColumnimport androidx.compose.animation.AnimatedContentimport androidx.compose.animation.togetherWithimport com.chethan616.clearpdf.ui.ThemeChoice@@ -140,7 +141,7 @@ private fun SettingsRoot(vm: AppViewModel, openLicences: () -> Unit, openGlass:var leaving by remember { mutableStateOf<String?>(null) }var naming by remember { mutableStateOf(false) }var authorDialog by remember { mutableStateOf(false) }- LazyColumn(Modifier.fillMaxSize(), contentPadding = PaddingValues(bottom = 32.dp)) {+ LazyColumn(Modifier.fillMaxSize().screenColumn(), contentPadding = PaddingValues(bottom = 32.dp)) {item { Spacer(Modifier.windowInsetsTopHeight(WindowInsets.statusBars)) }item(key = "title") {Spacer(Modifier.height(14.dp))@@ -244,7 +245,7 @@ private fun AppLanguagePage(onBack: () -> Unit) {val systemName = AppLocale.systemDisplayName(context)val languages = AppLocale.supportedTags- LazyColumn(Modifier.fillMaxSize(), contentPadding = PaddingValues(bottom = 32.dp)) {+ LazyColumn(Modifier.fillMaxSize().screenColumn(), contentPadding = PaddingValues(bottom = 32.dp)) {item { Spacer(Modifier.windowInsetsTopHeight(WindowInsets.statusBars)) }item {Spacer(Modifier.height(14.dp))@@ -305,7 +306,7 @@ private fun ReadAloudLanguagePage(onBack: () -> Unit) {onDispose { runCatching { tts.shutdown() } }}- LazyColumn(Modifier.fillMaxSize(), contentPadding = PaddingValues(bottom = 32.dp)) {+ LazyColumn(Modifier.fillMaxSize().screenColumn(), contentPadding = PaddingValues(bottom = 32.dp)) {item { Spacer(Modifier.windowInsetsTopHeight(WindowInsets.statusBars)) }item {Spacer(Modifier.height(14.dp))@@ -691,7 +692,7 @@ private fun LicencesPage(onBack: () -> Unit) {)),)var open by remember { mutableStateOf<String?>(null) }- LazyColumn(Modifier.fillMaxSize(), contentPadding = PaddingValues(bottom = 32.dp)) {+ LazyColumn(Modifier.fillMaxSize().screenColumn(), contentPadding = PaddingValues(bottom = 32.dp)) {item { Spacer(Modifier.windowInsetsTopHeight(WindowInsets.statusBars)) }item {Spacer(Modifier.height(14.dp))diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/glass/Surfaces.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/glass/Surfaces.ktindex 1d94dc5..1c0d404 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/glass/Surfaces.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/glass/Surfaces.kt@@ -62,7 +62,9 @@ internal fun Modifier.cleanFloatingSurface(shape: Shape, strongestAtTop: Boolean},highlight = null,shadow = null,- ).background(panel.copy(alpha = 0.82f), shape)+ // Frosted enough to read on, clear enough to see what passes under: at 82% the blur showed so+ // little that Reduce transparency (fully solid) seemed to change nothing (#158)+ ).background(panel.copy(alpha = 0.66f), shape)}/**diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/Cards.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/Cards.ktindex edeefd2..40ab7ea 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/Cards.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/Cards.kt@@ -261,8 +261,10 @@ fun NoteCard(val tone = clear.tone(Tone.Paper)val title = note.title.ifBlank { note.body.lineSequence().firstOrNull { it.isNotBlank() }?.trim()?.removePrefix("# ").orEmpty() }val body = if (note.title.isBlank()) "" else note.body.lineSequence().filter { it.isNotBlank() }.joinToString(" ") { it.trim().removePrefix("# ").replace("**", "") }- // at night the card is smoked glass: its pale title blue sits on a dark face, not on pale glass- val tint = if (clear.dark) Color(0xFF0B0F1A).copy(alpha = 0.34f) else Color.Transparent+ // at night, over a picture of the user's own, the card is smoked glass: its pale title blue sits on+ // a dark face, not on pale glass; on the app's own wallpapers the card is as it was+ val smoked = clear.dark && com.chethan616.clearpdf.ui.glass.GlassSettings.wallpaper == com.chethan616.clearpdf.ui.glass.Wallpaper.Custom+ val tint = if (smoked) Color(0xFF0B0F1A).copy(alpha = 0.34f) else Color.TransparentColumn(modifier.heightIn(min = 156.dp).pressable(onOpen, onLong, pressedScale = 0.96f).cardPaint(tone, Offset(0.1f, 0.0f), tint).padding(18.dp),) {@@ -323,7 +325,7 @@ fun MapCard(note: Note, onOpen: () -> Unit, onLong: () -> Unit, modifier: Modifi}}Spacer(Modifier.height(12.dp).weight(1f, fill = false))- Text(shortDate(note.updated), style = ClearType.Caption, color = tone.ink.copy(alpha = 0.55f), modifier = Modifier.align(Alignment.End))+ Text(shortDate(note.updated), style = ClearType.Caption, color = tone.ink.copy(alpha = 0.72f), modifier = Modifier.align(Alignment.End))}}@@ -340,7 +342,7 @@ fun ThoughtCard(onOpen: () -> Unit, modifier: Modifier = Modifier) {Text("“$quote”", style = ClearType.Body.copy(fontSize = 14.sp, lineHeight = 19.sp, fontStyle = androidx.compose.ui.text.font.FontStyle.Italic), color = tone.ink.copy(alpha = 0.8f), maxLines = 5, overflow = androidx.compose.ui.text.style.TextOverflow.Ellipsis)Spacer(Modifier.weight(1f))Spacer(Modifier.height(12.dp))- Text(shortDate(System.currentTimeMillis()), style = ClearType.Caption, color = tone.ink.copy(alpha = 0.55f), modifier = Modifier.align(Alignment.End))+ Text(shortDate(System.currentTimeMillis()), style = ClearType.Caption, color = tone.ink.copy(alpha = 0.72f), modifier = Modifier.align(Alignment.End))}}diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/DeskPages.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/DeskPages.ktindex 45d0408..c903710 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/DeskPages.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/DeskPages.kt@@ -17,6 +17,8 @@ import androidx.compose.foundation.layout.Spacerimport androidx.compose.foundation.layout.WindowInsetsimport androidx.compose.foundation.layout.fillMaxSizeimport androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.widthIn+import androidx.compose.foundation.layout.wrapContentWidthimport androidx.compose.foundation.layout.heightimport androidx.compose.foundation.layout.navigationBarsPaddingimport androidx.compose.foundation.layout.offset@@ -135,9 +137,21 @@ fun SnapshotsCard(vm: AppViewModel, scans: List<FileRow>, onOpen: () -> Unit, mo* Outfit (its face), weight by weight.*/-/** Mock pixels to dp on this screen. */+/**+ * Mock pixels to dp on this screen. A tablet or an unfolded phone is not a wider phone: there the+ * page keeps a phone's proportions in a column of [PageMaxWidth] (#157), where it used to be scaled+ * up with the width (about 2.3 times a phone's on a tablet upright, 3.6 times turned). Every phone is+ * narrower than the cap, so on a phone this is exactly what it was.+ */@Composable-private fun mockScale(): Float = androidx.compose.ui.platform.LocalConfiguration.current.screenWidthDp / MockWidth+private fun mockScale(): Float = minOf(androidx.compose.ui.platform.LocalConfiguration.current.screenWidthDp.toFloat(), PageMaxWidth) / MockWidth++/** The widest a desk page grows (dp): wider than any phone, so only larger screens are held to it. */+private const val PageMaxWidth = 480f++/** A desk page's column: the full width on a phone; on a larger screen, [PageMaxWidth] in the middle. */+private fun Modifier.pageColumn(): Modifier =+ fillMaxWidth().wrapContentWidth(Alignment.CenterHorizontally).widthIn(max = PageMaxWidth.dp).fillMaxWidth()private const val MockWidth = 491f@@ -259,7 +273,7 @@ fun ThoughtsScreen(vm: AppViewModel, desk: DeskState) {var actionsFor by remember { mutableStateOf<Note?>(null) }var actionsAnchor by remember { mutableStateOf(androidx.compose.ui.geometry.Rect.Zero) }Box(Modifier.fillMaxSize().verticalScroll(rememberScrollState())) {- Box(Modifier.fillMaxWidth().height(m(1068, k))) {+ Box(Modifier.pageColumn().height(m(1068, k))) {// Back and More: the desk's own header buttons, where the desk's header puts themDeskHeaderRow(leading = { GlassBackButton({ vm.closeDeskPage() }) },@@ -625,7 +639,7 @@ fun TodayScreen(vm: AppViewModel) {.flatMap { n -> n.items.filter { !it.done && it.text.isNotBlank() } }}Box(Modifier.fillMaxSize().verticalScroll(rememberScrollState())) {- Box(Modifier.fillMaxWidth().then(if (clear.clean) Modifier else Modifier.height(m(1068, k)))) {+ Box(Modifier.pageColumn().then(if (clear.clean) Modifier else Modifier.height(m(1068, k)))) {// the desk's own header: its mark (a tap goes back to the desk) and its menu buttonDeskHeaderRow(leading = {diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.ktindex 679dd99..9e2f70c 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/home/HomeScreen.kt@@ -236,7 +236,7 @@ fun HomeScreen(vm: AppViewModel, desk: DeskState) {val clean = clear.cleanval deskGrid: @Composable () -> Unit = {LazyVerticalStaggeredGrid(- columns = StaggeredGridCells.Fixed(2),+ columns = com.chethan616.clearpdf.ui.deskColumns(),state = grid,// glass in the scrolling desk samples the soft wallpaper: while it scrolls, ten times a second is plentymodifier = Modifier.fillMaxSize().throttleBackdrops { grid.isScrollInProgress }diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/NoteEditor.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/NoteEditor.ktindex f4cda25..f1293b3 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/NoteEditor.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/NoteEditor.kt@@ -85,12 +85,12 @@ import com.chethan616.clearpdf.notes.NoteKindimport com.chethan616.clearpdf.notes.checkItemimport com.chethan616.clearpdf.ui.AppViewModelimport com.chethan616.clearpdf.ui.LucideIcons+import com.chethan616.clearpdf.ui.screenColumnimport com.chethan616.clearpdf.ui.glass.GlassCircleimport com.chethan616.clearpdf.ui.glass.GlassIconimport com.chethan616.clearpdf.ui.glass.GlassMenuimport com.chethan616.clearpdf.ui.glass.GlassMenuItemimport com.chethan616.clearpdf.ui.glass.GlassMotion-import com.chethan616.clearpdf.ui.glass.LocalScreenInkimport com.chethan616.clearpdf.ui.glass.glassimport com.chethan616.clearpdf.ui.glass.pressableimport com.chethan616.clearpdf.ui.home.NoteImage@@ -145,7 +145,7 @@ fun NoteEditor(vm: AppViewModel, id: String) {Box(Modifier.fillMaxSize()) {ReadingVeil()LazyColumn(- Modifier.fillMaxSize().imePadding(),+ Modifier.fillMaxSize().screenColumn().imePadding(),contentPadding = PaddingValues(start = 24.dp, end = 24.dp, bottom = 140.dp),) {item(key = "top") {@@ -164,7 +164,7 @@ fun NoteEditor(vm: AppViewModel, id: String) {item(key = "title") {BasicTextField(title, { title = it },- textStyle = ClearType.Headline.copy(fontSize = 34.sp, lineHeight = 40.sp, fontWeight = FontWeight.ExtraBold, color = c.ink, shadow = LegibleShadow),+ textStyle = ClearType.Headline.copy(fontSize = 34.sp, lineHeight = 40.sp, fontWeight = FontWeight.ExtraBold, color = c.ink, shadow = legibleShadow(c)),cursorBrush = SolidColor(Candy.Sky),keyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences, imeAction = ImeAction.Next),keyboardActions = KeyboardActions(onNext = {@@ -179,7 +179,7 @@ fun NoteEditor(vm: AppViewModel, id: String) {decorationBox = { inner ->Box {// told from typed text by its weight, not only by faintness- if (title.text.isEmpty()) Text(stringResource(if (isList) R.string.notes_list_title_hint else R.string.notes_title_hint), style = ClearType.Headline.copy(fontSize = 34.sp, lineHeight = 40.sp, fontWeight = FontWeight.SemiBold, shadow = LegibleShadow), color = c.ink.copy(alpha = 0.62f))+ if (title.text.isEmpty()) Text(stringResource(if (isList) R.string.notes_list_title_hint else R.string.notes_title_hint), style = ClearType.Headline.copy(fontSize = 34.sp, lineHeight = 40.sp, fontWeight = FontWeight.SemiBold, shadow = legibleShadow(c)), color = c.ink.copy(alpha = 0.62f))inner()}},@@ -188,7 +188,7 @@ fun NoteEditor(vm: AppViewModel, id: String) {item(key = "date") {Text(DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT).format(Date(note.updated)),- style = ClearType.Caption.copy(fontSize = 13.sp, shadow = LegibleShadow), color = c.ink.copy(alpha = 0.75f), modifier = Modifier.padding(top = 10.dp, bottom = 18.dp),+ style = ClearType.Caption.copy(fontSize = 13.sp, shadow = legibleShadow(c)), color = c.ink.copy(alpha = 0.75f), modifier = Modifier.padding(top = 10.dp, bottom = 18.dp),)}if (isList) {@@ -218,14 +218,14 @@ fun NoteEditor(vm: AppViewModel, id: String) {) {Icon(LucideIcons.Plus, null, tint = c.ink.copy(alpha = 0.75f), modifier = Modifier.size(24.dp))Spacer(Modifier.width(12.dp))- Text(stringResource(R.string.notes_add_item), style = ClearType.Body.copy(fontSize = 17.sp), color = c.ink.copy(alpha = 0.75f))+ Text(stringResource(R.string.notes_add_item), style = ClearType.Body.copy(fontSize = 17.sp, shadow = legibleShadow(c)), color = c.ink.copy(alpha = 0.75f))}}} else {item(key = "body") {BasicTextField(body, { body = it },- textStyle = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 30.sp, color = c.ink.copy(alpha = 0.94f), shadow = LegibleShadow),+ textStyle = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 30.sp, color = c.ink.copy(alpha = 0.94f), shadow = legibleShadow(c)),cursorBrush = SolidColor(Candy.Sky),visualTransformation = MarkdownLite(c.ink),keyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences),@@ -233,12 +233,12 @@ fun NoteEditor(vm: AppViewModel, id: String) {decorationBox = { inner ->Column {Box {- if (body.text.isEmpty()) Text(stringResource(R.string.notes_body_hint), style = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 30.sp, shadow = LegibleShadow), color = c.ink.copy(alpha = 0.66f))+ if (body.text.isEmpty()) Text(stringResource(R.string.notes_body_hint), style = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 30.sp, shadow = legibleShadow(c)), color = c.ink.copy(alpha = 0.66f))inner()}if (reading) {Text(- stringResource(R.string.notes_body_hint), style = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 30.sp, shadow = LegibleShadow), color = c.ink.copy(alpha = 0.66f),+ stringResource(R.string.notes_body_hint), style = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 30.sp, shadow = legibleShadow(c)), color = c.ink.copy(alpha = 0.66f),modifier = Modifier.padding(top = 30.dp).pressable({val text = body.text + "\n\n"body = TextFieldValue(text, TextRange(text.length))@@ -314,23 +314,27 @@ fun NoteEditor(vm: AppViewModel, id: String) {/*** A soft shade under the editor's words: over a wallpaper with fine detail (the skeleton's wings and- * chains) the veil alone can leave a letter broken up, and a shadow binds it back together.+ * chains) the veil alone can leave a letter broken up, and a shadow binds it back together. Of the+ * opposite tone to the ink: dark under the dark theme's light words, light under the light theme's+ * dark ones (a black shade made those look heavier and smudged). None in Clean, whose page is solid.*/-private val LegibleShadow = Shadow(Color.Black.copy(alpha = 0.35f), Offset(0f, 1.5f), 6f)+private fun legibleShadow(c: com.chethan616.clearpdf.ui.theme.ClearColors): Shadow? =+ if (c.clean) null+ else if (c.dark) Shadow(Color.Black.copy(alpha = 0.35f), Offset(0f, 1.5f), 6f)+ else Shadow(Color.White.copy(alpha = 0.6f), Offset(0f, 1.5f), 8f)/*** A reading veil over the wallpaper, behind the editor's words only: the light ink sits on a calmer- * surface without the wallpaper leaving, and the brighter the wallpaper the stronger the veil (its- * luminance is the window's own sampler, the one the glass reads). Faded out on a dark wallpaper, in- * the light theme (whose ink is dark) and in Clean appearance (already a solid page).+ * surface without the wallpaper leaving. Only over a picture of the user's own (a bright one is what+ * washed the words out): the app's own wallpapers are calm and keep their look. Steady: read from the+ * window's sampler, the veil darkened what it read, read darker, eased off, and stepped as it settled.+ * Not in the light theme (whose ink is dark) or Clean appearance (already a solid page).*/@Composableprivate fun ReadingVeil() {val c = clear- if (c.clean || !c.dark) return- // null while Adaptive luminance is off: then the theme's own dark backdrop is the guess- val luminance = LocalScreenInk.current?.frame?.average() ?: 0.14f- val top = (0.15f + 0.35f * luminance).coerceIn(0.15f, 0.50f)+ if (c.clean || !c.dark || com.chethan616.clearpdf.ui.glass.GlassSettings.wallpaper != com.chethan616.clearpdf.ui.glass.Wallpaper.Custom) return+ val top = 0.42fBox(Modifier.fillMaxSize().background(Brush.verticalGradient(@@ -369,7 +373,7 @@ private fun ItemRow(item: CheckItem, focus: Boolean, onChange: (String) -> Unit,onChange(v.text)}},- textStyle = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 26.sp, color = ink, textDecoration = if (item.done) TextDecoration.LineThrough else null),+ textStyle = ClearType.Body.copy(fontSize = 18.sp, lineHeight = 26.sp, color = ink, textDecoration = if (item.done) TextDecoration.LineThrough else null, shadow = legibleShadow(c)),cursorBrush = SolidColor(Candy.Mint),keyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences, imeAction = ImeAction.Next),keyboardActions = KeyboardActions(onNext = { onNext() }),diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/onboarding/Onboarding.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/onboarding/Onboarding.ktindex 04128c2..cea8ce2 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/onboarding/Onboarding.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/onboarding/Onboarding.kt@@ -61,6 +61,7 @@ import com.chethan616.clearpdf.Rimport com.chethan616.clearpdf.notes.checkItemimport com.chethan616.clearpdf.ui.AppViewModelimport com.chethan616.clearpdf.ui.LucideIcons+import com.chethan616.clearpdf.ui.screenColumnimport com.chethan616.clearpdf.ui.glass.Fluidimport androidx.compose.ui.draw.drawBehindimport com.chethan616.clearpdf.ui.glass.Feel@@ -119,7 +120,9 @@ fun Onboarding(vm: AppViewModel, pager: PagerState = rememberPagerState { Welcomfirst = false}}- Box(Modifier.fillMaxSize()) {+ // on a wider screen, a phone-sized column in the middle: its cards and Continue were spread+ // to the screen's edges (#157); on a phone the full width, as before+ Box(Modifier.fillMaxSize().screenColumn(600.dp)) {HorizontalPager(pager, Modifier.fillMaxSize(), beyondViewportPageCount = 1) { page ->// how far this page is from the middle, read only while drawing: a swipe moves the// pages and their cards without recomposing a thing