-
-
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
Add settings to match device's theme (dark & black) #3632
Conversation
I've rebased and fixed a bug around |
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.
Nice 👍
Imho we should hide the follow system theme options when the user's Android version doesn't support that. |
I won't hide it for android 9 because of LineageOS supporting themes anyway. And SAF settings was doing this for a long time |
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.
Other than this small thing, I would merge this.
From @B0pol accidentally posted in #3471 (comment) |
@B0pol: Your switch preference is flawed, because then it won't actually follow device theme when you've selected the light theme. |
that's intended. With what would you switch? Dark or black? If we had only dark and light I'd have make a simple third theme: auto. The point is to select between dark and black here |
@B0pol: Yes, but why is it showing the light option when you could only choose between dark and black for the follow device theme functionality? I still prefer your previous UI though. |
I agree with @wb9688. What about replacing the switch with a list Follow device theme |
When the follow system theme toggle is switched on, the light theme should be greyed out so only the dark and black options are selectable. That's what I had suggested previously. |
I have another idea:
And after that two other lists
The second list:
And if automatic is set, we switch between light and the selected night theme (default dark). |
14648d1
to
8568acf
Compare
fix bugs related to isLightThemeSelected not handling device themes such as license having dark background when it should be white
Also remove unused strings
I rebased, squashed some commits, added 731c65c which refactors ThemeHelper and tested thorougly on API 19 (emulated, where there is no device theme system setting) and on API 29 (Fairphone 3). Everything works fine and smoothly. @TobiGr This has also been tested before many times and I think it should be merged. @B0pol could you review my changes? |
Tested on Pixel 4a (API 30). LGTM! |
Add settings to match device's theme (dark & black)
What is it?
Description of the changes in your PR
Added two device theme settings:
Device theme (Dark) and Device theme (Black) will set the theme to light if device's theme is light or unknown, otherwise it will set dark or black.
Available for Android 10+ only, LineageOS 16+ and other ROMs providing dark theme.
Here is a GIF:
Fixes the following issue(s)
Testing apk
NewPipe_theme.zip
Agreement