-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Migrate to Android DayNight Theme, fix Light Theme, minor UI improvements #5927
Conversation
@krlvm thank you for this huge improvement! It does have many benefits. :-D @TobiGr I'd give priority to this PR, is would be painful to rebase 300 files ;-) |
In fact, this number is not scary, I just renamed all files like Important changes are in:
Also got rid of icons in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me, I also tested a little bit and everything seems fine. Thank you! :-D
app/src/main/java/org/schabi/newpipe/local/subscription/item/FeedImportExportItem.kt
Outdated
Show resolved
Hide resolved
…eedImportExportItem.kt Co-authored-by: Stypox <[email protected]>
@krlvm Under white theme:
|
The icons of the items in "Settings -> Content -> Content of main page -> + -> Kiosk page" are white under white theme, even though they should be black. This is not caused by your PR, but if it's not an issue please fix it while you are at it ;-) |
Should be fixed now |
Can't reproduce the last issue, two others were fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppCompatImageButton ignores "tint" theme attribute on API 19, therefore, they had to be specified directly, these attributes can be removed after the KitKat support is dropped.
I'm actually really excited for this PR (DayNight usage is something I've wanted for quite a while, plus no more themed drawables). Hoping as many bugs as possible will be ironed out before merge-time :) |
actually it appears this is already ironed out alot? Why not merge it and let it test with the RC for the next release? |
I cannot find any more problems on the last two versions of Android, which I use, at least in the most used activities, but additional flaws on API 19 may be revealed. Anyway, thanks for taking the time to find those problems that I could not discover before opening the PR. |
Did anyone test this on a TV? |
@TobiGr I didn't think of that, I'm going to test now on an emulator |
I tested again, even on an emulated TV (API 29), and couldn't find anything wrong, both in white and dark/black theme. I think this can be merged, since potential problems would anyway only be color problems, not usability issues. |
Release build failed: |
Try replacing |
Migrate to Android DayNight Theme, fix Light Theme, minor UI improvements
What is it?
Description of the changes in your PR
_white
and_black
assets have been separated indrawable
anddrawable-night
,ThemeHelper.resolveResourceIdFromAttr
is no longer used - it should improve the overall performance, but I did not run benchmarksFixes the following issue(s)
APK testing
On the website the APK can be found by going to the "Checks" tab below the title and then on "artifacts" on the right.
Due diligence