-
Notifications
You must be signed in to change notification settings - Fork 259
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
Material theming #1132
base: master
Are you sure you want to change the base?
Material theming #1132
Conversation
Ready for a review |
Thanks for your contribution! Can you explain why you use |
Sorry I forgot to turn off the hook which was set to hardening my programs. Apparently it pollutes the changelog. Reverted. |
c795a94
to
45bd57a
Compare
@di72nn Any updates? |
Sorry for the delay and thanks again for your work. I generally don't mind cleaning the code up, but only if it doesn't mess with the commit history. That is, cosmetic/cleanup changes go into a separate commit. That commit generally shouldn't be in the middle of a PR. Preferably it should go into a separate PR, but that's not a requirement.
Braceless one-line ifs. Braceless multiline ifs are bad, but one-line ifs are a matter of taste. I don't mind them in the current code base. These classes have only
These have only
And these have only
So all of the above changes may be considered in a separate PR, but I already gave my opinion on these. Some of the undesirable changes are also present in these classes:
At this point I've only briefly looked over theme-related changes. |
Thanks for taking your time on reviewing this!
Yeah. Actually I don't really intend to change coding styles. Those will just be reverted in this PR.
Including this change. It was introduced by the formatter but shouldn't be just done in such a way.
The reason: material components explicitly requires so. I'm not sure if the interpolation is done automatically, nor there will be any implications if we don't replace them so.
|
bb848ad
to
9032306
Compare
I'm not sure I understand what you're saying.
It means that You have to use
There may be some other cases, but I don't think they have anything to do with this PR. |
OK. So then the diff becomes incredibly small... which is great! @di72nn |
d416590
to
1d97538
Compare
Sorry for the delay again. I'll start with the fact that I tested this PR as it is on an Android 9 device and things are very broken: most of the time important parts of the screen are simply black, there are some other animation-related glitches. I noticed that your last commit reverts some stuff in
Is Any particular reason "splash" with the logo was removed? |
Eh... I've tested on Android 11 for months, and it works well.
Do you mean light/black are mixed?
No, as long as you see the app bar.
Yes, because it's not needed. The default theme is set application-wise, and covers the Settings.
Every theme should have their light/dark variant. And because of the current theme listing, it should be fine to list all themes in an enum. Further improvements could be addressed in another PR, and is large enough to be another PR. Other things are fixed. |
1d97538
to
299c902
Compare
BTW, "it works fine" means it doesn't increase glitches. |
And I'm planing to enhance the transition, which can only be done on top of this |
Just tested on Android 8.1 emulator - glitches are there, you can see for yourself. |
Thanks! Can you make the tab bar on the main screen not stand out as much in the dark theme? Currently it has a lighter background color than both title bar and list background. The accent color in settings may differ in normal screens and in popup screens (like checkboxes in "Settings -> UI -> Math delimiters") depending on the selected theme. I noticed that some icons (the checkmark, the star) in the title bar have slightly inconsistent color in some themes. The overflow menu in I haven't tested it on older Android versions yet.
What do you mean? |
- use svg icons - fix toolbar options color inconsistency
I make them both have 4dp elevation to fix the issue. The default elevation of a top app bar is 4dp in Material Design.
The
The theme with a legacy ActionBar doesn't read the material parameters correctly. I fix this by draw the top app bar directly (which is a big change)
Ditto.
The navigation transitions. I thought you mean the transition is flickered by |
Scope
Theme.MaterialComponents
familyOut of scope
Questions
DoYesSolarized
andFor e-ink devices
needs dark themes?DoLet them be by defaultSolarized
andFor e-ink devices
needs a "Follow system" option?