Skip to content

Conversation

@TheLastProject
Copy link
Member

@TheLastProject TheLastProject commented May 4, 2025

  • Composify
  • Hide elements when they should be hidden
  • Don't crash when clicking an element
  • Fix tests
  • Fix Compose not applying pure black OLED switch
  • Remove colour selection options in Catima (to simplify migration) - See Remove theme colour support #2897
  • Ensure consistency with other activity designs

true
setContent {
MaterialTheme {
Scaffold(
Copy link
Contributor

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
Copy link
Contributor

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?

@TheLastProject TheLastProject force-pushed the feature/aboutCompose branch 2 times, most recently from 80a7ef9 to d3f7549 Compare May 7, 2025 18:30
@TheLastProject TheLastProject force-pushed the feature/aboutCompose branch 4 times, most recently from 437a681 to e79efe2 Compare June 4, 2025 11:30
@TheLastProject TheLastProject force-pushed the feature/aboutCompose branch from e79efe2 to d14f5c8 Compare June 4, 2025 12:44
@TheLastProject TheLastProject mentioned this pull request May 3, 2025
27 tasks
@TheLastProject
Copy link
Member Author

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.

@vijay2909
Copy link

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.

@TheLastProject TheLastProject force-pushed the feature/aboutCompose branch 2 times, most recently from 9720a40 to 47bdd52 Compare December 20, 2025 11:45
@TheLastProject
Copy link
Member Author

TheLastProject commented Dec 26, 2025

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:

  1. Figure out why the pure black thing doesn't work and fix it - DONE :)
  2. Squash merge this MR (because the commit history is kinda messy, but also makes some sense, so I would like the MR to at least stay like this and not squash it before merging)
  3. Put removing the colour setting in a separate MR to merge straight after (to keep this MR's commit history clean but have removing the colour settings in a separate MR)

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 😅

@TheLastProject TheLastProject marked this pull request as ready for review December 26, 2025 16:43
@TheLastProject
Copy link
Member Author

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 :)

@TheLastProject TheLastProject merged commit b06f240 into main Dec 27, 2025
3 checks passed
@TheLastProject TheLastProject deleted the feature/aboutCompose branch December 27, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants