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
Liquid Glass motion settings, swap share and open, 44 dp reader controls
chethan616f2a3f9afaaab
diff --git a/DESIGN.md b/DESIGN.mdindex a726ad7..bfebc1f 100644--- a/DESIGN.md+++ b/DESIGN.md@@ -93,6 +93,13 @@ Use the shared springs in `GlassMotion` (or springs close to them):| `GlassMotion.unfold()` / `unfoldLag()` / `fold()` | Menus: width (0.68, 420), height a beat behind (0.6, 340), close (1, 900) || `GlassMotion.settle()` / `fade()` | Alpha and layout. Critically damped, never bouncy |+**The user tunes it (Settings -> Liquid Glass -> Motion).** `MotionSettings` holds multipliers on+the numbers above (bounce, speed, press depth, release jiggle, drag stretch, long-press bloom) with+the profiles Normal (the design, exactly), Performance, Bouncy and Super springy. So every bouncing+spring goes through `MotionSettings.damping(designed)` / `stiffness(designed)`, and every press+size goes through the style. The `GlassMotion` springs already do. A new bouncing spring written+by hand must do the same. `settle`, `fade` and layout springs never bounce and ignore it.+**Press jelly (the iOS 27 feel).**- Glass buttons (`LiquidButton`, `LiquidIconButton`) share `liquidPressTransform`. The button swells~4 dp under the finger and leans toward a dragging finger. On release it springs back and jiggles once,@@ -167,6 +174,10 @@ Use the shared springs in `GlassMotion` (or springs close to them):heading stays blue. Never use a plain RGB invert. Pictures: a photograph is drawn as printed; ascan or figure that `NightPaper.looksLikePaper` turns over with the page. PDF/PPTX pages findtheir pictures with `PdfImageRegions` and redraw photographs unfiltered (also in zoom tiles).+- The reader's bottom circles (editor tools, auto-scroll, the open/share morph) are 44 dp with+ 20 dp icons, the Word editor's size, in the PDF and PowerPoint viewers too. The morph grows to+ twice its size while armed. Settings -> Personalization -> Swap share and open makes the tap+ share and the hold-and-swipe open; the ink still follows what is behind it.- Word documents open as pages, desktop-like: true proportions and margins, fit to width, pinch tozoom (the page relays out sharp, it is never bitmap-scaled), Word's own page breaks.diff --git a/app/src/main/java/com/chethan616/clearpdf/data/repository/Preferences.kt b/app/src/main/java/com/chethan616/clearpdf/data/repository/Preferences.ktindex 266691a..e760f21 100644--- a/app/src/main/java/com/chethan616/clearpdf/data/repository/Preferences.kt+++ b/app/src/main/java/com/chethan616/clearpdf/data/repository/Preferences.kt@@ -179,6 +179,13 @@ object AppSettingsManager {// see UISensor's own KDoc for why that is the dominant redraw cost on devices sensitive to it./** Documents open with dark pages whenever the app is in dark mode (#74). */fun getAutoDarkPages(context: Context): Boolean = prefs(context).getBoolean(KEY_AUTO_DARK_PAGES, false)++ /**+ * Swaps the viewer's share/open button: tap shares the document, press-and-hold then swipe up+ * opens another file (the default is the other way round).+ */+ fun getInvertShareMorph(context: Context): Boolean = prefs(context).getBoolean("invert_share_morph", false)+ fun setInvertShareMorph(context: Context, enabled: Boolean) = prefs(context).edit().putBoolean("invert_share_morph", enabled).apply()fun setAutoDarkPages(context: Context, enabled: Boolean) = prefs(context).edit().putBoolean(KEY_AUTO_DARK_PAGES, enabled).apply()fun getReduceGlassMotion(context: Context): Boolean =diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/DocsApp.kt b/app/src/main/java/com/chethan616/clearpdf/ui/DocsApp.ktindex 29e2f66..dc5e279 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/DocsApp.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/DocsApp.kt@@ -287,7 +287,11 @@ fun DocsApp(shortcutRoute: String? = null, incomingPdfUri: android.net.Uri? = nu// Floating glass (dropdown menus, contextual bars) from any depth renders here, above every// screen, refracting the live screen — see GlassOverlayHost.val overlayHost = remember { GlassOverlayHost() }- remember(context) { com.chethan616.clearpdf.ui.components.GlassSettings.load(context); true }+ remember(context) {+ com.chethan616.clearpdf.ui.components.GlassSettings.load(context)+ com.chethan616.clearpdf.ui.components.MotionSettings.load(context)+ true+ }val platformHaptics = androidx.compose.ui.platform.LocalHapticFeedback.currentval haptics = remember(platformHaptics) { com.chethan616.clearpdf.ui.utils.ThrottledHaptics(platformHaptics) }diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBead.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBead.ktindex 8b5e188..c2f063b 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBead.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBead.kt@@ -49,7 +49,7 @@ fun GlassBead(selected -> 1.1felse -> 1f},- spring(dampingRatio = 0.45f, stiffness = 520f),+ spring(dampingRatio = MotionSettings.damping(0.45f), stiffness = MotionSettings.stiffness(520f)),label = "beadScale")Box(diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBottomSheet.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBottomSheet.ktindex 202431d..fb732a7 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBottomSheet.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassBottomSheet.kt@@ -173,7 +173,7 @@ fun GlassBottomSheet(hidden.snapTo(startFraction)currentOnDismiss()} else {- dragOffset.animateTo(0f, spring(dampingRatio = 0.7f, stiffness = 500f), initialVelocity = velocity)+ dragOffset.animateTo(0f, spring(dampingRatio = MotionSettings.damping(0.7f), stiffness = MotionSettings.stiffness(500f)), initialVelocity = velocity)}})diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassDialog.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassDialog.ktindex ced45ab..0c4c852 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassDialog.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassDialog.kt@@ -122,7 +122,7 @@ fun GlassDialog(LaunchedEffect(visible) {if (visible) {composed = true- progress.animateTo(1f, spring(dampingRatio = 0.72f, stiffness = 420f, visibilityThreshold = 0.001f))+ progress.animateTo(1f, spring(dampingRatio = MotionSettings.damping(0.72f), stiffness = MotionSettings.stiffness(420f), visibilityThreshold = 0.001f))} else {progress.animateTo(0f, spring(dampingRatio = 1f, stiffness = 900f, visibilityThreshold = 0.001f))composed = falsediff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassMotion.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassMotion.ktindex de7ac02..fe43458 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassMotion.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassMotion.kt@@ -19,14 +19,17 @@ import androidx.compose.animation.core.spring* the press reads instantly), lifts on [pressOut] (springs once past rest, then settles), and glass* controls add a [wobble] (X and Y squash out of phase, one visible swing). A tap shorter than* [MinPressMillis] still shows the full press before it springs back.+ *+ * Every bouncing spring here goes through [MotionSettings] (Settings -> Liquid Glass -> Motion), so+ * the user's bounce and speed apply everywhere; [settle], [fade] and [fold] never bounce.*/object GlassMotion {/** Underdamped: overshoots ~8% and settles. The capsule/bar "springs open" feel. */- fun <T> morph(): SpringSpec<T> = spring(dampingRatio = 0.58f, stiffness = 420f)+ fun <T> morph(): SpringSpec<T> = spring(MotionSettings.damping(0.58f), MotionSettings.stiffness(420f))/** Snappier and bouncier — for small elements that should pop, like an icon landing. */- fun <T> pop(): SpringSpec<T> = spring(dampingRatio = 0.45f, stiffness = 500f)+ fun <T> pop(): SpringSpec<T> = spring(MotionSettings.damping(0.45f), MotionSettings.stiffness(500f))/** Critically damped. For alpha, and for layout properties where overshoot costs a re-measure. */fun <T> settle(): SpringSpec<T> = spring(dampingRatio = 1f, stiffness = Spring.StiffnessMedium)@@ -35,28 +38,28 @@ object GlassMotion {fun <T> fade(): SpringSpec<T> = settle()/** Press-down and bounce-back for value-driven presses (prefer [rememberJellyPress]). */- fun <T> press(): SpringSpec<T> = spring(dampingRatio = 0.5f, stiffness = 700f)+ fun <T> press(): SpringSpec<T> = spring(MotionSettings.damping(0.5f), MotionSettings.stiffness(700f))/** Finger down: quick and nearly critically damped, so the press lands in ~80 ms. */- fun <T> pressIn(): SpringSpec<T> = spring(dampingRatio = 0.72f, stiffness = 900f)+ fun <T> pressIn(): SpringSpec<T> = spring(MotionSettings.damping(0.72f), MotionSettings.stiffness(900f))/** Finger up: springs back past rest once (~2 % of the dip) and settles. */- fun <T> pressOut(): SpringSpec<T> = spring(dampingRatio = 0.46f, stiffness = 420f)+ fun <T> pressOut(): SpringSpec<T> = spring(MotionSettings.damping(0.46f), MotionSettings.stiffness(420f))/** Release jiggle for glass: one visible out-of-phase squash, the second swing is ~20 %. */- fun <T> wobble(): SpringSpec<T> = spring(dampingRatio = 0.42f, stiffness = 420f)+ fun <T> wobble(): SpringSpec<T> = spring(MotionSettings.damping(0.42f), MotionSettings.stiffness(420f))/** Menus and popovers unfolding from their anchor: ~5 % overshoot, settled in ~350 ms. */- fun <T> unfold(): SpringSpec<T> = spring(dampingRatio = 0.68f, stiffness = 420f)+ fun <T> unfold(): SpringSpec<T> = spring(MotionSettings.damping(0.68f), MotionSettings.stiffness(420f))/** The trailing axis of an unfold: a touch softer, so the panel lands like a drop of gel. */- fun <T> unfoldLag(): SpringSpec<T> = spring(dampingRatio = 0.6f, stiffness = 340f)+ fun <T> unfoldLag(): SpringSpec<T> = spring(MotionSettings.damping(0.6f), MotionSettings.stiffness(340f))/** Folding away: fast and critically damped. Dismissals never bounce. */- fun <T> fold(): SpringSpec<T> = spring(dampingRatio = 1f, stiffness = 900f)+ fun <T> fold(): SpringSpec<T> = spring(dampingRatio = 1f, stiffness = MotionSettings.stiffness(900f))- /** Uniform pressed scale for tiles, rows and morphing buttons. */- const val PressedScale = 0.94f+ /** Uniform pressed scale for tiles, rows and morphing buttons (0.94 at the designed press depth). */+ val PressedScale: Float get() = 1f - 0.06f * MotionSettings.style.press.coerceIn(0f, 2.5f)/** A tap shorter than this still shows the whole press before releasing. */const val MinPressMillis = 90Ldiff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassSegmentedControl.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassSegmentedControl.ktindex 76f2c3e..c25cb8d 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassSegmentedControl.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/GlassSegmentedControl.kt@@ -102,7 +102,7 @@ fun GlassSegmentedControl(hoverIndex = selectedIndexposition.animateTo(selectedIndex.toFloat().fastCoerceIn(0f, (count - 1).toFloat()),- spring(dampingRatio = 0.72f, stiffness = 380f)+ spring(dampingRatio = MotionSettings.damping(0.72f), stiffness = MotionSettings.stiffness(380f))) { stretch.onPositionSample(value * segPx) }}@@ -160,7 +160,7 @@ fun GlassSegmentedControl(}}}- scope.launch { press.animateTo(0f, spring(0.6f, 400f)) }+ scope.launch { press.animateTo(0f, spring(MotionSettings.damping(0.6f), MotionSettings.stiffness(400f))) }val target = if (dragged) hoverIndex else startIndexif (!cancelled && target != currentSelected) {haptics.performHapticFeedback(HapticFeedbackType.SegmentTick)@@ -169,7 +169,7 @@ fun GlassSegmentedControl(// Snap the thumb back if a drag ended on the same segment.hoverIndex = currentSelectedscope.launch {- position.animateTo(currentSelected.toFloat(), spring(0.72f, 380f)) {+ position.animateTo(currentSelected.toFloat(), spring(MotionSettings.damping(0.72f), MotionSettings.stiffness(380f))) {stretch.onPositionSample(value * segPx)}}diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/MotionSettings.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/MotionSettings.ktnew file mode 100644index 0000000..9b16e80--- /dev/null+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/MotionSettings.kt@@ -0,0 +1,85 @@+package com.chethan616.clearpdf.ui.components++import android.content.Context+import androidx.compose.runtime.Immutable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.setValue++/**+ * How springy the Liquid Glass motion is (Settings -> Liquid Glass -> Motion). Every value is a+ * multiplier on the physics the app was designed with, so [Normal] reproduces it exactly:+ *+ * - [bounce]: 0.5 is the design; higher lowers the springs' damping (more overshoot), lower raises+ * it. Springs that must never bounce (fades, layout, dismissals) ignore it.+ * - [speed]: spring stiffness.+ * - [press]: how far a glass control swells (and a flat one dips) under the finger.+ * - [wobble]: the out-of-phase jiggle on release.+ * - [stretch]: how far a control leans and stretches toward a dragging finger.+ * - [bloom]: how much a long-pressed control grows.+ */+@Immutable+data class MotionStyle(+ val bounce: Float = 0.5f,+ val speed: Float = 1f,+ val press: Float = 1f,+ val wobble: Float = 1f,+ val stretch: Float = 1f,+ val bloom: Float = 1f+) {+ companion object {+ val Normal = MotionStyle()+ val Performance = MotionStyle(bounce = 0.2f, speed = 1.45f, press = 0.6f, wobble = 0f, stretch = 0.5f, bloom = 0.5f)+ val Bouncy = MotionStyle(bounce = 0.75f, speed = 0.92f, press = 1.3f, wobble = 1.6f, stretch = 1.2f, bloom = 1.2f)+ val SuperSpringy = MotionStyle(bounce = 0.95f, speed = 0.82f, press = 1.6f, wobble = 2.2f, stretch = 1.5f, bloom = 1.5f)+ val Presets = listOf(Normal, Performance, Bouncy, SuperSpringy)+ }+}++object MotionSettings {+ private const val PREFS = "ui_prefs"++ var style: MotionStyle by mutableStateOf(MotionStyle.Normal)+ private set++ private var loaded = false++ fun load(context: Context) {+ if (loaded) return+ loaded = true+ val p = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE)+ val d = MotionStyle.Normal+ style = MotionStyle(+ bounce = p.getFloat("motion_bounce", d.bounce),+ speed = p.getFloat("motion_speed", d.speed),+ press = p.getFloat("motion_press", d.press),+ wobble = p.getFloat("motion_wobble", d.wobble),+ stretch = p.getFloat("motion_stretch", d.stretch),+ bloom = p.getFloat("motion_bloom", d.bloom)+ )+ }++ fun update(context: Context, s: MotionStyle) {+ style = s+ context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).edit()+ .putFloat("motion_bounce", s.bounce)+ .putFloat("motion_speed", s.speed)+ .putFloat("motion_press", s.press)+ .putFloat("motion_wobble", s.wobble)+ .putFloat("motion_stretch", s.stretch)+ .putFloat("motion_bloom", s.bloom)+ .apply()+ }++ /**+ * A designed damping ratio at the user's bounce: unchanged at 0.5, up to 1.6x (calmer) at 0,+ * down to 0.4x (much springier) at 1. Never critically damped from an underdamped design, and+ * never below 0.12 so nothing rings for long.+ */+ fun damping(designed: Float): Float {+ val f = 1f + (0.5f - style.bounce) * 1.2f+ return (designed * f).coerceIn(0.12f, 0.98f)+ }++ fun stiffness(designed: Float): Float = designed * style.speed.coerceIn(0.4f, 2.5f)+}diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/ShareMorphButton.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/ShareMorphButton.ktindex 3a661e3..ed35ffa 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/ShareMorphButton.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/ShareMorphButton.kt@@ -45,6 +45,7 @@ import androidx.compose.ui.input.pointer.pointerInputimport androidx.compose.ui.platform.LocalDensityimport androidx.compose.ui.platform.LocalHapticFeedbackimport androidx.compose.ui.res.stringResource+import androidx.compose.ui.unit.Dpimport androidx.compose.ui.unit.dpimport com.chethan616.clearpdf.Rimport com.kyant.backdrop.backdrops.LayerBackdrop@@ -86,8 +87,23 @@ fun ShareMorphButton(onShareModeChanged: (Boolean) -> Unit = {},idleIcon: ImageVector = Icons.Rounded.UploadFile,idleContentDesc: String? = null,- modifier: Modifier = Modifier+ modifier: Modifier = Modifier,+ /** The idle circle's diameter; the capsule grows to twice this. */+ size: Dp = 52.dp,+ /**+ * Settings -> Personalization -> Swap share and open: tap shares and the hold-and-swipe opens+ * another file. Read from settings when not given.+ */+ inverted: Boolean? = null) {+ val context = androidx.compose.ui.platform.LocalContext.current+ val swap = inverted ?: remember { com.chethan616.clearpdf.data.repository.AppSettingsManager.getInvertShareMorph(context) }+ val tapAction = if (swap) onShare else onOpen+ val swipeAction = if (swap) onOpen else onShare+ val restIcon = if (swap) Icons.Rounded.IosShare else idleIcon+ val restDesc = if (swap) stringResource(R.string.viewer_share_document) else idleContentDesc+ val armedIcon = if (swap) idleIcon else Icons.Rounded.IosShare+ val armedDesc = if (swap) idleContentDesc else stringResource(R.string.viewer_share_document)var shareMode by remember { mutableStateOf(false) }var pressed by remember { mutableStateOf(false) }var dragUp by remember { mutableFloatStateOf(0f) }@@ -101,7 +117,7 @@ fun ShareMorphButton(val height by morph.animateDp(transitionSpec = { GlassMotion.morph() },label = "shareMorphHeight"- ) { if (it) 104.dp else 52.dp }+ ) { if (it) size * 2 else size }// 0 while idle, 1 while morphed. Both icon layers read this, so they cross-fade against the// same curve the height is travelling on. The fade itself stays critically damped — a bouncing// alpha reads as a flicker — while `pop` carries the bounce on scale instead.@@ -178,7 +194,7 @@ fun ShareMorphButton(Box(modifier- .width(52.dp)+ .width(size).height(height).graphicsLayer { scaleX = jelly.scale; scaleY = jelly.scale }// The viewer's own chrome material, so this sits beside the back and search circles as one@@ -192,7 +208,7 @@ fun ShareMorphButton(tryAwaitRelease()pressed = false},- onTap = { if (!shareMode) onOpen() }+ onTap = { if (!shareMode) tapAction() })}.pointerInput(Unit) {@@ -203,7 +219,7 @@ fun ShareMorphButton(},onDrag = { change, amount -> change.consume(); dragUp += amount.y },onDragEnd = {- if (dragUp < -thresholdPx) onShare()+ if (dragUp < -thresholdPx) swipeAction()shareMode = false; onShareModeChanged(false); dragUp = 0f},onDragCancel = { shareMode = false; onShareModeChanged(false); dragUp = 0f }@@ -217,7 +233,7 @@ fun ShareMorphButton(Modifier.fillMaxSize().graphicsLayer { alpha = 1f - morphed },contentAlignment = Alignment.Center) {- Icon(idleIcon, idleContentDesc, Modifier.size(20.dp), fg)+ Icon(restIcon, restDesc, Modifier.size(20.dp), fg)}}if (morphed > 0.001f) {@@ -226,12 +242,12 @@ fun ShareMorphButton(Modifier.fillMaxSize().graphicsLayer { alpha = morphed }- .padding(vertical = 9.dp),+ .padding(vertical = size * 0.17f),horizontalAlignment = Alignment.CenterHorizontally) {Icon(- Icons.Rounded.IosShare,- stringResource(R.string.viewer_share_document),+ armedIcon,+ armedDesc,Modifier.size(20.dp)// Overshoots to ~1.08 before settling — the icon lands with the capsule.diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/components/ToolTile.kt b/app/src/main/java/com/chethan616/clearpdf/ui/components/ToolTile.ktindex 4a9bb87..04a8c60 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/components/ToolTile.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/components/ToolTile.kt@@ -58,7 +58,7 @@ private fun rememberPressScale(interaction: MutableInteractionSource): State<Floif (pressed) 0.96f else 1f,// Slightly under-damped and a touch stiffer than the rest of the app: release kicks back// with a visible bounce. Scoped to the tool tiles on purpose — everything else stays damped.- spring(dampingRatio = 0.42f, stiffness = Spring.StiffnessMedium),+ spring(dampingRatio = MotionSettings.damping(0.42f), stiffness = MotionSettings.stiffness(Spring.StiffnessMedium)),label = "toolTilePress")}diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerBottomToolbar.kt b/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerBottomToolbar.ktindex d49bb71..828d8a7 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerBottomToolbar.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/screen/PdfViewerBottomToolbar.kt@@ -750,31 +750,31 @@ internal fun PdfViewerBottomToolbar(horizontalArrangement = Arrangement.spacedBy(10.dp),verticalAlignment = Alignment.CenterVertically) {- Box(Modifier.size(52.dp), contentAlignment = Alignment.Center) {+ Box(Modifier.size(ReaderControlSize), contentAlignment = Alignment.Center) {LiquidIconButton(onClick = {editorOpen = !editorOpenif (!editorOpen) onSetActiveTool(PdfEditTool.None)},backdrop = backdrop,- modifier = Modifier.size(52.dp),+ modifier = Modifier.size(ReaderControlSize),tint = if (editorOpen) accent else Color.Unspecified,surfaceColor = if (!editorOpen && (readerTourStep == 0 || readerTourStep == 2)) LiquidGlassColors.Blue.copy(alpha = 0.22f) else Color.Unspecified) {- Icon(Icons.Rounded.Edit, stringResource(R.string.viewer_editor_tools), Modifier.size(21.dp), if (editorOpen) Color.White else fg)+ Icon(Icons.Rounded.Edit, stringResource(R.string.viewer_editor_tools), Modifier.size(20.dp), if (editorOpen) Color.White else fg)}}- Box(Modifier.size(52.dp), contentAlignment = Alignment.Center) {+ Box(Modifier.size(ReaderControlSize), contentAlignment = Alignment.Center) {LiquidIconButton(onClick = onToggleAutoScroll,backdrop = backdrop,- modifier = Modifier.size(52.dp),+ modifier = Modifier.size(ReaderControlSize),tint = if (autoScrollActive) LiquidGlassColors.Green else Color.Unspecified) {Icon(if (autoScrollActive) Icons.Rounded.Pause else Icons.Rounded.PlayArrow,stringResource(if (autoScrollActive) R.string.viewer_auto_scroll_pause else R.string.viewer_auto_scroll_start),- Modifier.size(21.dp),+ Modifier.size(20.dp),if (autoScrollActive) Color.White else fg)}@@ -799,7 +799,7 @@ internal fun PdfViewerBottomToolbar(}Spacer(Modifier.weight(1f))// Reserve the final slot for ShareMorph, which is layered over this row.- Spacer(Modifier.size(52.dp))+ Spacer(Modifier.size(ReaderControlSize))}}}@@ -812,6 +812,7 @@ internal fun PdfViewerBottomToolbar(modifier = Modifier.align(Alignment.BottomEnd).zIndex(3f)) {ShareMorphButton(+ size = ReaderControlSize,backdrop = backdrop,glass = if (readerTourStep == 1) LiquidGlassColors.Blue.copy(alpha = 0.2f) else pillGlass,fg = fg,@@ -856,3 +857,6 @@ internal fun PdfViewerBottomToolbar(}}++/** The reader's bottom circles (editor, auto-scroll, share/open): the Word editor's 44 dp size. */+private val ReaderControlSize = 44.dpdiff --git a/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt b/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.ktindex 573a4a7..6f22e9a 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@@ -50,6 +50,7 @@ import androidx.compose.material.icons.rounded.PhoneAndroidimport androidx.compose.material.icons.rounded.PhotoLibraryimport androidx.compose.material.icons.rounded.Refreshimport androidx.compose.material.icons.rounded.Star+import androidx.compose.material.icons.rounded.SwapVertimport androidx.compose.material.icons.rounded.Tuneimport androidx.compose.material.icons.rounded.Vibrationimport androidx.compose.material.icons.rounded.Wallpaper@@ -485,6 +486,17 @@ fun SettingsScreen(backdrop = backdrop)SettingsDivider(isLight)+ // The viewer's open/share morph: swap what the tap and the hold-and-swipe do.+ var invertShareMorph by remember { mutableStateOf(AppSettingsManager.getInvertShareMorph(context)) }+ SettingsToggleRow(+ icon = Icons.Rounded.SwapVert,+ title = stringResource(R.string.settings_invert_share_morph),+ desc = stringResource(R.string.settings_invert_share_morph_desc),+ checked = invertShareMorph,+ onCheckedChange = { invertShareMorph = it; AppSettingsManager.setInvertShareMorph(context, it) },+ backdrop = backdrop+ )+ SettingsDivider(isLight)SettingsToggleRow(icon = Icons.Rounded.Wallpaper,title = stringResource(R.string.settings_background),@@ -733,6 +745,86 @@ private fun GlassTuningPage(modifier = Modifier.fillMaxWidth())}++ MotionTuningSection(backdrop, uiSensor, ink, sub)+}++/**+ * Settings -> Liquid Glass -> Motion: the spring physics every glass control shares (press swell,+ * release jiggle, drag stretch, long-press bloom, bounce and speed), with profiles and a button to+ * feel the result. Values are multipliers on the designed motion; Normal is the design.+ */+@Composable+private fun MotionTuningSection(+ backdrop: Backdrop,+ uiSensor: com.chethan616.clearpdf.ui.utils.UISensor,+ ink: Color,+ sub: Color+) {+ val context = LocalContext.current+ val motion = com.chethan616.clearpdf.ui.components.MotionSettings.style+ fun set(m: com.chethan616.clearpdf.ui.components.MotionStyle) =+ com.chethan616.clearpdf.ui.components.MotionSettings.update(context, m)+ val presets = listOf(+ com.chethan616.clearpdf.ui.components.MotionStyle.Normal to stringResource(R.string.motion_preset_normal),+ com.chethan616.clearpdf.ui.components.MotionStyle.Performance to stringResource(R.string.motion_preset_performance),+ com.chethan616.clearpdf.ui.components.MotionStyle.Bouncy to stringResource(R.string.motion_preset_bouncy),+ com.chethan616.clearpdf.ui.components.MotionStyle.SuperSpringy to stringResource(R.string.motion_preset_super)+ )+ SettingsSection(backdrop, uiSensor, Modifier, gap = 10.dp) {+ BasicText(stringResource(R.string.glass_motion), style = TextStyle(ink, 17.sp, FontWeight.SemiBold))+ BasicText(stringResource(R.string.glass_motion_desc), style = TextStyle(sub, 13.sp))+ Row(Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()), horizontalArrangement = Arrangement.spacedBy(8.dp)) {+ presets.forEach { (m, label) ->+ GlassChoiceChip(label = label, selected = motion == m, onClick = { set(m) }, backdrop = backdrop, accent = LiquidGlassColors.Purple)+ }+ if (presets.none { it.first == motion }) {+ GlassChoiceChip(label = stringResource(R.string.glass_preset_custom), selected = true, onClick = {}, backdrop = backdrop, accent = LiquidGlassColors.Purple)+ }+ }+ // Press it to feel the current physics.+ Box(Modifier.fillMaxWidth().padding(vertical = 6.dp), contentAlignment = Alignment.Center) {+ LiquidButton(onClick = {}, backdrop = backdrop, tint = LiquidGlassColors.Purple) {+ BasicText(+ stringResource(R.string.motion_try),+ style = TextStyle(Color.White, 15.sp, FontWeight.SemiBold),+ modifier = Modifier.padding(horizontal = 18.dp)+ )+ }+ }+ }+ SettingsSection(backdrop, uiSensor, Modifier, gap = 6.dp) {+ @Composable+ fun knob(label: String, value: Float, range: ClosedFloatingPointRange<Float>, onChange: (Float) -> Unit) {+ Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) {+ BasicText(label, style = TextStyle(ink, 14.sp, FontWeight.Medium))+ BasicText("%.2f".format(value), style = TextStyle(sub, 13.sp))+ }+ LiquidSlider(+ value = { value },+ onValueChange = onChange,+ valueRange = range,+ visibilityThreshold = 0.005f,+ backdrop = backdrop,+ modifier = Modifier.fillMaxWidth()+ )+ }+ knob(stringResource(R.string.motion_bounce), motion.bounce, 0f..1f) { set(motion.copy(bounce = it)) }+ knob(stringResource(R.string.motion_speed), motion.speed, 0.5f..2f) { set(motion.copy(speed = it)) }+ knob(stringResource(R.string.motion_press), motion.press, 0f..2.5f) { set(motion.copy(press = it)) }+ knob(stringResource(R.string.motion_wobble), motion.wobble, 0f..3f) { set(motion.copy(wobble = it)) }+ knob(stringResource(R.string.motion_stretch), motion.stretch, 0f..2.5f) { set(motion.copy(stretch = it)) }+ knob(stringResource(R.string.motion_bloom), motion.bloom, 0f..2.5f) { set(motion.copy(bloom = it)) }+ Spacer(Modifier.height(8.dp))+ ToolPrimaryButton(+ text = stringResource(R.string.motion_reset),+ onClick = { set(com.chethan616.clearpdf.ui.components.MotionStyle.Normal) },+ backdrop = backdrop,+ accent = LiquidGlassColors.Purple,+ icon = Icons.Rounded.Refresh,+ modifier = Modifier.fillMaxWidth()+ )+ }}/** One row of the Settings index: tinted icon tile, title, current value, chevron — iOS Settings. */diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/utils/DampedDragAnimation.kt b/app/src/main/java/com/chethan616/clearpdf/ui/utils/DampedDragAnimation.ktindex 86c2dea..c2b0af8 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/utils/DampedDragAnimation.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/utils/DampedDragAnimation.kt@@ -30,14 +30,15 @@ class DampedDragAnimation(private val valueAnimationSpec =spring(1f, 1000f, visibilityThreshold)- private val velocityAnimationSpec =- spring(0.5f, 300f, visibilityThreshold * 10f)+ // The bouncy parts (thumb squash and velocity) follow Settings -> Liquid Glass -> Motion.+ private val velocityAnimationSpec get() =+ spring(com.chethan616.clearpdf.ui.components.MotionSettings.damping(0.5f), com.chethan616.clearpdf.ui.components.MotionSettings.stiffness(300f), visibilityThreshold * 10f)private val pressProgressAnimationSpec =spring(1f, 1000f, 0.001f)- private val scaleXAnimationSpec =- spring(0.6f, 250f, 0.001f)- private val scaleYAnimationSpec =- spring(0.7f, 250f, 0.001f)+ private val scaleXAnimationSpec get() =+ spring(com.chethan616.clearpdf.ui.components.MotionSettings.damping(0.6f), com.chethan616.clearpdf.ui.components.MotionSettings.stiffness(250f), 0.001f)+ private val scaleYAnimationSpec get() =+ spring(com.chethan616.clearpdf.ui.components.MotionSettings.damping(0.7f), com.chethan616.clearpdf.ui.components.MotionSettings.stiffness(250f), 0.001f)private val valueAnimation =Animatable(initialValue, visibilityThreshold)diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/utils/InteractiveHighlight.kt b/app/src/main/java/com/chethan616/clearpdf/ui/utils/InteractiveHighlight.ktindex d366eb4..9d71ecb 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/utils/InteractiveHighlight.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/utils/InteractiveHighlight.kt@@ -1,5 +1,6 @@package com.chethan616.clearpdf.ui.utils+import com.chethan616.clearpdf.ui.components.MotionSettingsimport android.graphics.RuntimeShaderimport android.os.Buildimport android.os.SystemClock@@ -50,14 +51,15 @@ class InteractiveHighlight() {// iOS 27 press: the swell lands fast with a small overshoot, the release springs back past rest// once, and [wobble] adds one out-of-phase squash on top (see liquidPressTransform).- private val pressInSpec = spring(0.66f, 620f, 0.001f)- private val pressOutSpec = spring(0.5f, 380f, 0.001f)- private val positionAnimationSpec = spring(0.52f, 360f, Offset.VisibilityThreshold)- private val wobbleSpec = spring(0.42f, 420f, 0.001f)+ // Read at use, so Settings -> Liquid Glass -> Motion applies to the next press.+ private val pressInSpec get() = spring(MotionSettings.damping(0.66f), MotionSettings.stiffness(620f), 0.001f)+ private val pressOutSpec get() = spring(MotionSettings.damping(0.5f), MotionSettings.stiffness(380f), 0.001f)+ private val positionAnimationSpec get() = spring(MotionSettings.damping(0.52f), MotionSettings.stiffness(360f), Offset.VisibilityThreshold)+ private val wobbleSpec get() = spring(MotionSettings.damping(0.42f), MotionSettings.stiffness(420f), 0.001f)// Bloom in on a soft, slightly slower spring; let go on a livelier one that undershoots rest// a touch before settling — the "boing" that makes the release feel physical.- private val expandInSpec = spring(dampingRatio = 0.52f, stiffness = 340f, visibilityThreshold = 0.001f)- private val expandOutSpec = spring(dampingRatio = 0.46f, stiffness = 420f, visibilityThreshold = 0.001f)+ private val expandInSpec get() = spring(dampingRatio = MotionSettings.damping(0.52f), stiffness = MotionSettings.stiffness(340f), visibilityThreshold = 0.001f)+ private val expandOutSpec get() = spring(dampingRatio = MotionSettings.damping(0.46f), stiffness = MotionSettings.stiffness(420f), visibilityThreshold = 0.001f)private val pressProgressAnimation = Animatable(0f, 0.001f)private val positionAnimation = Animatable(Offset.Zero, Offset.VectorConverter, Offset.VisibilityThreshold)@@ -136,7 +138,7 @@ half4 main(float2 coord) {// A quick tap still shows the whole swell before it lets go.val held = SystemClock.uptimeMillis() - downAtif (held < MinPressMillis) delay(MinPressMillis - held)- val kick = WobbleKick * pressProgressAnimation.value.fastCoerceIn(0f, 1.1f)+ val kick = WobbleKick * MotionSettings.style.wobble.fastCoerceIn(0f, 3f) * pressProgressAnimation.value.fastCoerceIn(0f, 1.1f)launch { wobbleAnimation.animateTo(0f, wobbleSpec, initialVelocity = kick) }launch { pressProgressAnimation.animateTo(0f, pressOutSpec) }launch { positionAnimation.animateTo(startPosition, positionAnimationSpec) }@@ -202,17 +204,20 @@ fun GraphicsLayerScope.liquidPressTransform(h: InteractiveHighlight) {val width = size.widthval height = size.height+ val motion = MotionSettings.styleval progress = h.pressProgress- val bloom = h.expandProgress * (14f.dp.toPx() / size.maxDimension).fastCoerceAtMost(0.12f)- val scale = lerp(1f, 1f + 4f.dp.toPx() / height, progress) + bloom+ val bloomAmount = motion.bloom.fastCoerceIn(0f, 2.5f)+ val bloom = h.expandProgress * (14f.dp.toPx() * bloomAmount / size.maxDimension).fastCoerceAtMost(0.12f * bloomAmount)+ val scale = lerp(1f, 1f + 4f.dp.toPx() * motion.press.fastCoerceIn(0f, 2.5f) / height, progress) + bloomval maxOffset = size.minDimension- val initialDerivative = 0.05f+ val stretch = motion.stretch.fastCoerceIn(0f, 2.5f)+ val initialDerivative = 0.05f * stretchval offset = h.offsettranslationX = maxOffset * tanh(initialDerivative * offset.x / maxOffset)translationY = maxOffset * tanh(initialDerivative * offset.y / maxOffset)- val maxDragScale = 4f.dp.toPx() / height+ val maxDragScale = 4f.dp.toPx() * stretch / heightval offsetAngle = atan2(offset.y, offset.x)val w = h.wobbleval wobbleX = w * (2.5f.dp.toPx() / width).fastCoerceAtMost(0.045f)diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xmlindex b515ed4..9a7f655 100644--- a/app/src/main/res/values-ar/strings.xml+++ b/app/src/main/res/values-ar/strings.xml@@ -918,4 +918,22 @@<string name="restart_body">تُقرأ هذه اللغة في الاتجاه الآخر. أعد تشغيل ClearPDF لتتبدّل كل الشاشات.</string><string name="restart_now">إعادة التشغيل الآن</string><string name="restart_later">لاحقًا</string>++ <!-- Liquid Glass motion; swap the viewer's share and open -->+ <string name="glass_motion">الحركة</string>+ <string name="glass_motion_desc">طريقة ارتداد كل الأزرار والمنزلقات واللوحات الزجاجية. اختر ملفًا جاهزًا أو اضبط كل جزء ثم اضغط «جرّبها» لتشعر بها.</string>+ <string name="motion_preset_normal">عادي</string>+ <string name="motion_preset_performance">الأداء</string>+ <string name="motion_preset_bouncy">مرن</string>+ <string name="motion_preset_super">مرن جدًا</string>+ <string name="motion_try">جرّبها</string>+ <string name="motion_bounce">الارتداد</string>+ <string name="motion_speed">السرعة</string>+ <string name="motion_press">عمق الضغط</string>+ <string name="motion_wobble">الاهتزاز عند الإفلات</string>+ <string name="motion_stretch">التمدد عند السحب</string>+ <string name="motion_bloom">التضخم عند الضغط المطوّل</string>+ <string name="motion_reset">إعادة ضبط الحركة</string>+ <string name="settings_invert_share_morph">تبديل المشاركة والفتح</string>+ <string name="settings_invert_share_morph_desc">في العارض، انقر الزر الدائري لمشاركة المستند، واضغط مطولًا ثم اسحب لأعلى لفتح ملف آخر.</string></resources>diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xmlindex 4c5a1c9..2a426c6 100644--- a/app/src/main/res/values-es/strings.xml+++ b/app/src/main/res/values-es/strings.xml@@ -943,4 +943,22 @@<string name="restart_body">Este idioma se lee en la otra dirección. Reinicia ClearPDF para que todas las pantallas cambien.</string><string name="restart_now">Reiniciar ahora</string><string name="restart_later">Más tarde</string>++ <!-- Liquid Glass motion; swap the viewer's share and open -->+ <string name="glass_motion">Movimiento</string>+ <string name="glass_motion_desc">Cómo rebotan todos los botones, controles deslizantes y paneles de cristal. Elige un perfil o ajusta cada parte y pulsa Pruébalo para sentirlo.</string>+ <string name="motion_preset_normal">Normal</string>+ <string name="motion_preset_performance">Rendimiento</string>+ <string name="motion_preset_bouncy">Rebote</string>+ <string name="motion_preset_super">Súper elástico</string>+ <string name="motion_try">Pruébalo</string>+ <string name="motion_bounce">Rebote</string>+ <string name="motion_speed">Velocidad</string>+ <string name="motion_press">Profundidad al pulsar</string>+ <string name="motion_wobble">Temblor al soltar</string>+ <string name="motion_stretch">Estiramiento al arrastrar</string>+ <string name="motion_bloom">Crecimiento al mantener</string>+ <string name="motion_reset">Restablecer movimiento</string>+ <string name="settings_invert_share_morph">Intercambiar compartir y abrir</string>+ <string name="settings_invert_share_morph_desc">En el visor, toca el botón redondo para compartir el documento y mantenlo pulsado y desliza hacia arriba para abrir otro archivo.</string></resources>diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xmlindex 91e99be..839dd3a 100644--- a/app/src/main/res/values-it/strings.xml+++ b/app/src/main/res/values-it/strings.xml@@ -948,4 +948,22 @@<string name="restart_body">Questa lingua si legge nell\'altro verso. Riavvia ClearPDF perché tutte le schermate si adeguino.</string><string name="restart_now">Riavvia ora</string><string name="restart_later">Più tardi</string>++ <!-- Liquid Glass motion; swap the viewer's share and open -->+ <string name="glass_motion">Movimento</string>+ <string name="glass_motion_desc">Come rimbalzano tutti i pulsanti, i cursori e i pannelli di vetro. Scegli un profilo o regola ogni parte, poi premi Provalo per sentirlo.</string>+ <string name="motion_preset_normal">Normale</string>+ <string name="motion_preset_performance">Prestazioni</string>+ <string name="motion_preset_bouncy">Elastico</string>+ <string name="motion_preset_super">Super elastico</string>+ <string name="motion_try">Provalo</string>+ <string name="motion_bounce">Rimbalzo</string>+ <string name="motion_speed">Velocità</string>+ <string name="motion_press">Profondità della pressione</string>+ <string name="motion_wobble">Tremolio al rilascio</string>+ <string name="motion_stretch">Allungamento al trascinamento</string>+ <string name="motion_bloom">Espansione alla pressione prolungata</string>+ <string name="motion_reset">Ripristina movimento</string>+ <string name="settings_invert_share_morph">Scambia condividi e apri</string>+ <string name="settings_invert_share_morph_desc">Nel visualizzatore, tocca il pulsante rotondo per condividere il documento e tienilo premuto e scorri verso l\'alto per aprire un altro file.</string></resources>diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xmlindex 1ddf0fc..960d2a0 100644--- a/app/src/main/res/values-pt-rBR/strings.xml+++ b/app/src/main/res/values-pt-rBR/strings.xml@@ -941,4 +941,22 @@<string name="restart_body">Este idioma é lido na outra direção. Reinicie o ClearPDF para que todas as telas mudem.</string><string name="restart_now">Reiniciar agora</string><string name="restart_later">Depois</string>++ <!-- Liquid Glass motion; swap the viewer's share and open -->+ <string name="glass_motion">Movimento</string>+ <string name="glass_motion_desc">Como pulam todos os botões, controles deslizantes e painéis de vidro. Escolha um perfil ou ajuste cada parte e toque em Experimentar para sentir.</string>+ <string name="motion_preset_normal">Normal</string>+ <string name="motion_preset_performance">Desempenho</string>+ <string name="motion_preset_bouncy">Saltitante</string>+ <string name="motion_preset_super">Super elástico</string>+ <string name="motion_try">Experimentar</string>+ <string name="motion_bounce">Pulo</string>+ <string name="motion_speed">Velocidade</string>+ <string name="motion_press">Profundidade ao tocar</string>+ <string name="motion_wobble">Tremida ao soltar</string>+ <string name="motion_stretch">Esticar ao arrastar</string>+ <string name="motion_bloom">Crescer ao segurar</string>+ <string name="motion_reset">Redefinir movimento</string>+ <string name="settings_invert_share_morph">Trocar compartilhar e abrir</string>+ <string name="settings_invert_share_morph_desc">No visualizador, toque no botão redondo para compartilhar o documento e toque, segure e deslize para cima para abrir outro arquivo.</string></resources>diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xmlindex da65d6c..9f4bc02 100644--- a/app/src/main/res/values-pt/strings.xml+++ b/app/src/main/res/values-pt/strings.xml@@ -941,4 +941,22 @@<string name="restart_body">Este idioma é lido na outra direção. Reinicie o ClearPDF para que todas as telas mudem.</string><string name="restart_now">Reiniciar agora</string><string name="restart_later">Depois</string>++ <!-- Liquid Glass motion; swap the viewer's share and open -->+ <string name="glass_motion">Movimento</string>+ <string name="glass_motion_desc">Como saltam todos os botões, controlos deslizantes e painéis de vidro. Escolha um perfil ou ajuste cada parte e toque em Experimentar para sentir.</string>+ <string name="motion_preset_normal">Normal</string>+ <string name="motion_preset_performance">Desempenho</string>+ <string name="motion_preset_bouncy">Saltitante</string>+ <string name="motion_preset_super">Super elástico</string>+ <string name="motion_try">Experimentar</string>+ <string name="motion_bounce">Salto</string>+ <string name="motion_speed">Velocidade</string>+ <string name="motion_press">Profundidade ao premir</string>+ <string name="motion_wobble">Tremor ao soltar</string>+ <string name="motion_stretch">Esticar ao arrastar</string>+ <string name="motion_bloom">Crescer ao manter premido</string>+ <string name="motion_reset">Repor movimento</string>+ <string name="settings_invert_share_morph">Trocar partilhar e abrir</string>+ <string name="settings_invert_share_morph_desc">No visualizador, toque no botão redondo para partilhar o documento e mantenha premido e deslize para cima para abrir outro ficheiro.</string></resources>diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xmlindex dd0c5dd..eace042 100644--- a/app/src/main/res/values-ru/strings.xml+++ b/app/src/main/res/values-ru/strings.xml@@ -948,4 +948,22 @@<string name="restart_body">Этот язык читается в другую сторону. Перезапустите ClearPDF, чтобы все экраны перестроились.</string><string name="restart_now">Перезапустить</string><string name="restart_later">Позже</string>++ <!-- Liquid Glass motion; swap the viewer's share and open -->+ <string name="glass_motion">Движение</string>+ <string name="glass_motion_desc">Как пружинят все стеклянные кнопки, ползунки и панели. Выберите профиль или настройте каждую часть и нажмите «Попробовать», чтобы почувствовать.</string>+ <string name="motion_preset_normal">Обычный</string>+ <string name="motion_preset_performance">Производительность</string>+ <string name="motion_preset_bouncy">Упругий</string>+ <string name="motion_preset_super">Суперпружинистый</string>+ <string name="motion_try">Попробовать</string>+ <string name="motion_bounce">Отскок</string>+ <string name="motion_speed">Скорость</string>+ <string name="motion_press">Глубина нажатия</string>+ <string name="motion_wobble">Дрожание при отпускании</string>+ <string name="motion_stretch">Растяжение при перетаскивании</string>+ <string name="motion_bloom">Рост при долгом нажатии</string>+ <string name="motion_reset">Сбросить движение</string>+ <string name="settings_invert_share_morph">Поменять «Поделиться» и «Открыть»</string>+ <string name="settings_invert_share_morph_desc">В просмотрщике нажмите круглую кнопку, чтобы поделиться документом, а нажмите, удерживайте и проведите вверх, чтобы открыть другой файл.</string></resources>diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex 14b8eb5..7475542 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -948,4 +948,22 @@<string name="restart_body">This language reads in the other direction. Restart ClearPDF so every screen switches over.</string><string name="restart_now">Restart now</string><string name="restart_later">Later</string>++ <!-- Liquid Glass motion; swap the viewer's share and open -->+ <string name="glass_motion">Motion</string>+ <string name="glass_motion_desc">How every glass button, slider and sheet springs. Pick a profile or tune each part, then press Try it to feel it.</string>+ <string name="motion_preset_normal">Normal</string>+ <string name="motion_preset_performance">Performance</string>+ <string name="motion_preset_bouncy">Bouncy</string>+ <string name="motion_preset_super">Super springy</string>+ <string name="motion_try">Try it</string>+ <string name="motion_bounce">Bounce</string>+ <string name="motion_speed">Speed</string>+ <string name="motion_press">Press depth</string>+ <string name="motion_wobble">Release jiggle</string>+ <string name="motion_stretch">Drag stretch</string>+ <string name="motion_bloom">Long-press bloom</string>+ <string name="motion_reset">Reset motion</string>+ <string name="settings_invert_share_morph">Swap share and open</string>+ <string name="settings_invert_share_morph_desc">In the viewer, tap the round button to share the document and press, hold and swipe up to open another file.</string></resources>