Skip to content

Liquid#11

Merged
SunnyVishnu3 merged 198 commits into
Testfrom
Liquid
May 2, 2026
Merged

Liquid#11
SunnyVishnu3 merged 198 commits into
Testfrom
Liquid

Conversation

@SunnyVishnu3
Copy link
Copy Markdown
Owner

No description provided.

SunnyVishnu3 and others added 25 commits March 10, 2026 13:36
…marlboro-advance#671) (#7)

* chore: bump version to 1.2.9 (129)

* feat(player): improve background playback and notification handling

* ui(player): fix AB loop control visibility when background is hidden

* Revert "feat(player): improve background playback and notification handling"

This reverts commit 0ea65e9.

* ui(player): cleanup and icon updates

* fix(ambient): ensure seamless transition and persistent state across playbacks (marlboro-advance#663)

* Update PlayerViewModel.kt : fix(playback): reset ambient and visual states and reapply ambient mode calculations on file transition

Fix visual properties bleeding into subsequent files during playback

This commit addresses edge cases where video properties (ambient shaders, aspect ratio, zoom, and pan) incorrectly persist when transitioning to a new media file (e.g., clicking Next or auto-playing a playlist) breaking the ambient mode function by carrying the stretch properties into the next/previous file.

Changes in `PlayerViewModel.kt`:
* Fixed a bug where keeping Ambient Mode ON during a file transition would apply the previous video's dimension math to the new video. The shader now forces a recalculation (`lastAmbientScaleX = -1.0`) when a new duration is detected.
* Updated `setMediaTitle` to strictly reset UI states and MPV engine properties for Video Aspect Ratio (forces `Fit`), Video Zoom, and Video Pan. This guarantees every new file starts with a clean visual slate.

* Update resetAmbientMode for Persistent Status on Next/Previous file

Updated resetAmbientMode() with for enabling Persistent Status on Next/Previous file.

* Add ambient mode preference to PlayerPreferences

Added a new persistant preference for enabling ambient mode.

* Implement persistent ambient mode state

Added persistent state management for ambient mode in PlayerViewModel.

* refactor(player): simplify Ambient Mode and extract to `AmbientModeManager`

* fix(player): dynamically adjust subtitle positions for dual-subtitles

- Add `updateSubtitlePositions()` to `MPVView` to manage subtitle placement based on active tracks.
- Automatically move secondary subtitles to the top (position 10) when primary subtitles are also active.
- Revert secondary subtitles to the bottom (user-defined `subPos`) when they are the only active track.
- Observe `sid` and `secondary-sid` properties in `PlayerActivity` and `MPVView` to trigger position updates on track changes.

* Anime4k fix (marlboro-advance#664)

---------

Co-authored-by: MarlboroAdvance <marlboroadvance@zohomail.in>
Co-authored-by: Chinna95P <140423321+Chinna95P@users.noreply.github.com>
Co-authored-by: Ritesh Pandit <87899750+Riteshp2001@users.noreply.github.com>
* Change dialog scrim color for better text contrast

Updated dialog scrim color to adapt to themes and improve text visibility.

* Introduce shared LiquidUIPreferences CompositionLocal

Added LocalLiquidPreferences to share LiquidUIPreferences across the component tree.

* Refactor LiquidGlassSurface for performance improvements

Refactor LiquidGlassSurface to use shared LocalLiquidPreferences for better performance and prevent unnecessary recompositions. Adjust tint alpha handling and improve the draw logic for different API levels.

* Change default tint alpha value to improve readability

Updated default tint alpha value from 0.15f to 0.5f for better text readability.
@SunnyVishnu3 SunnyVishnu3 reopened this May 2, 2026
@SunnyVishnu3 SunnyVishnu3 merged commit 532a571 into Test May 2, 2026
1 check 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