-
-
Notifications
You must be signed in to change notification settings - Fork 222
AboutActivity to Jetpack Compose #2489
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
Conversation
| true | ||
| setContent { | ||
| MaterialTheme { | ||
| Scaffold( |
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.
I would extract the logic for the actual screen content in a separate function. That would make it easier to preview the UI and test it with fake data. Example, Documentation
| ) | ||
| } | ||
| } | ||
| } No newline at end of file |
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.
Missing new line? Maybe also a Preview?
80a7ef9 to
d3f7549
Compare
437a681 to
e79efe2
Compare
e79efe2 to
d14f5c8
Compare
|
Main blocker here is that I haven't found the time to deal with fixing the tests yet (quite a different way of testing) and I'm hesitant to just remove the tests (though maybe I should to at least progress somewhat). I think the general code is probably pretty OK by now, just needs the custom colour support removed for consistency between XML and Compose. |
|
Thanks for the update! I took a look and went ahead with some optimizations in AboutActivity. I’ve also fixed a few of the existing tests and added some new ones to improve coverage. Hopefully, this helps unblock some of the progress you mentioned. Let me know if you’d like me to push these changes for review or if you’d prefer I open a separate PR. |
9720a40 to
47bdd52
Compare
…s/defaultConfig` value
47bdd52 to
104e2df
Compare
|
I should probably watch out to not try to be too perfectionist about this. It's pretty good and honestly it looks consistent enough, aside from the "Pure black background for dark theme" option not being applied. So need to figure out how to fix that (I would like Catima to be compatible with those weird eink phones, which this setting would also help with). So, plan:
I think it's good enough to consider "done", even though we don't have a test for opening the browser yet, because otherwise it'll never get done 😅 |
|
I'll sleep on this a bit, but most likely both this and #2897 are ready to merge (please speak up if you disagree!). Exciting to finally have a bit of Compose in Catima! Really feels nice to shed some legacy code slowly :) |
Uh oh!
There was an error while loading. Please reload this page.