Liquid#11
Merged
Merged
Conversation
…id/LiquidComponents.kt
…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.
Refactor SectionHeaderWithInfo to improve readability and usage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.