Skip to content

Improve natural language in German strings and enhance Lyrics animations#1948

Merged
theovilardo merged 8 commits into
PixelPlayerHQ:masterfrom
Amonoman:master
May 11, 2026
Merged

Improve natural language in German strings and enhance Lyrics animations#1948
theovilardo merged 8 commits into
PixelPlayerHQ:masterfrom
Amonoman:master

Conversation

@Amonoman

@Amonoman Amonoman commented May 9, 2026

Copy link
Copy Markdown
Contributor

Polish & Lyrics Enhancements
This PR improves the PixelPlayer user experience by refining German string naturalness and implementing modern UI animations.

Changes

1. Natural Language (German)

  • Tone: Switched from stiff imperatives to a friendly "du" or impersonal phrasing.
  • Clarity: Shortened verbose descriptions in auth, setup, and empty states.
  • UI: Simplified labels for Cast permissions, Telegram login, and AI features.

2. Lyrics Animations & Predictive Back (Android 13+)

  • Predictive Back: Added LyricsPredictiveBackHandler for real-time gesture tracking on API 34+.
  • Motion: Smooth spring-slide entry and slide-down exit animations.
  • Visuals: Back button scales and bounces in sync with user interaction.

3. Fixes & Performance

  • Stability: Resolved build errors in LyricsSheet (imports and lerp shadowing).
  • Efficiency: Used graphicsLayer for draw-phase animations to ensure high performance.

@Amonoman Amonoman changed the title Improve natural language in strings and enhance Lyrics animations Improve natural language in German strings and enhance Lyrics animations May 9, 2026
@theovilardo

Copy link
Copy Markdown
Collaborator

Hi! there's currently some conflicts with this PR

Amonoman added 8 commits May 11, 2026 07:22
- Remove stiff imperative constructions ("Es wird darauf hingewiesen...")
- Replace implicit "Sie" with "du" or impersonal phrasing throughout
- Shorten verbose descriptions in auth, setup, library empty states
- Simplify Cast permission text, Telegram login hints, AI lab labels
- Rephrase error messages to be direct without being harsh
- Add setcat_language_german to settings
…ture (API 34+)

Introduces a dedicated PredictiveBackHandler for the Lyrics page that drives
a shared Animatable<Float> in real time with the back-swipe gesture progress.
Falls back to a plain BackHandler on API < 34. Mirrors the pattern already
used by PlayerSheetPredictiveBackHandler.
- Replace plain BackHandler with LyricsPredictiveBackHandler (API 34+ aware)
- Animate sheet in on first composition via spring() on backProgress (1f → 0f)
- Apply graphicsLayer to Scaffold: scale, alpha, translateY and edge-aware
  translateX are all driven by the same backProgress Animatable, so the
  predictive-back gesture shrinks/fades the sheet frame-synchronously
- Corner radius lerps from 32 dp → 56 dp during the exit gesture
…ack support

Sheet slides down and fades on back gesture (API 34+), falls back to plain
BackHandler on older versions. Enter animation spring-slides the sheet in on
open. Back button scales and fades in sync with the gesture.

- LyricsPredictiveBackHandler.kt: drives progress via Float callback
- LyricsSheet.kt: wires up handler, enter anim, graphicsLayer (draw-phase)
- LyricsFloatingToolbar.kt: back button animates via backProgressProvider
Restore TransformOrigin and lerp imports removed during cleanup.
Qualify lerp calls in graphicsLayer with androidx.compose.ui.util.lerp
to prevent shadowing by the Dp overload from androidx.compose.ui.unit.
Sheet now only slides down on predictive back without fading.
Back button scales down with a bouncy spring on press, combined
with the existing gesture scale via MutableInteractionSource.
@Amonoman

Copy link
Copy Markdown
Contributor Author

@theovilardo I just rebased the PR

@theovilardo theovilardo merged commit ca5cb87 into PixelPlayerHQ:master May 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants