Skip to content

Conversation

Thompson3142
Copy link
Contributor

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

An ugly fix for the issue that the text color is black in dark/black mode. WebView is unfortunately messing with the theme with no real way to prevent it (at least from my observation).
For some further reference: https://issuetracker.google.com/issues/37124582.
I am not entirely sure why this exactly helps but it seems like the first WebView instantiated sets the theme/context and following ones don't change it again?
If there is some other change that directly prevents this bug from occurring it should definitely be preferred.

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

@github-actions github-actions bot added the size/small PRs with less than 50 changed lines label Feb 12, 2025
@Stypox
Copy link
Member

Stypox commented Feb 12, 2025

Thank you for investigating! Maybe add a comment in the code

@AudricV AudricV added bug Issue is related to a bug GUI Issue is related to the graphical user interface labels Feb 16, 2025
@Stypox Stypox enabled auto-merge (squash) February 21, 2025 09:34
@Stypox Stypox merged commit c9ec257 into TeamNewPipe:dev Feb 21, 2025
5 checks passed
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ShareASmile ShareASmile mentioned this pull request Apr 17, 2025
6 tasks
@Stypox Stypox mentioned this pull request Jul 17, 2025
11 tasks
whistlingwoods pushed a commit to whistlingwoods/FoxPipe that referenced this pull request Aug 25, 2025
* Ugly fix for broken text colors in dark mode

* Add comment for clarification

* Added error prevention

* Update app/src/main/java/org/schabi/newpipe/MainActivity.java

---------

Co-authored-by: Stypox <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug GUI Issue is related to the graphical user interface size/small PRs with less than 50 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI bug - theme - broken text colors

3 participants