Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing no gradient player background when using "pure black" theme. #465

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

SageTendo
Copy link

Fixes #462

  • useBlackBackground now considers playerBackground state
  • Player background updates dynamically based on: (mediaMetadata, playerBackground, darkTheme, useBlackBackground) to cover all possible theme configurations and state changes.
  • Introduces hasGradientColours to represent gradientColors.size >= 2 for readability.
  • Refactors onBackgroundColor calculation into separate code segments for better readability

Additional packages:

None

Screenshots:

Light Mode

Light Mode + Dynamic

Light Mode + Gradient

Light Mode + Dynamic + Gradient


Dark Mode

Dark Mode + Dynamic

Dark Mode + Gradient (with/without Pure Black)

Dark Mode + Dynamic + Gradient (with/without Pure Black)

Dark Mode + Pure Black

Dark Mode + Dynamic + Pure Black

- @useBlackBackground variable now factors in the player background style @playerBackground state
- Player background now changes on the following (@mediaMetadata, @playerBackground, @DarkTheme, @useBlackBackground) to factor all possible theme configurations
- "gradientColors.size >= 2" usage replaced with @hasGradientColours
- Refactors @onBackgroundColor calculation into separate code segments for readability
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.

No gradient in pure black theme
1 participant