Files
simplex-chat/apps
another-simple-pixel 5c4a24f15e Section / Theme: extract sectionCardColor() helper
Three SectionView overloads were each computing the same cardColor inline:
if (CurrentColors.value.base == DefaultTheme.LIGHT) Color.White
else MaterialTheme.colors.background.mixWith(...). DRY violation paired with
the canvasColorForCurrentTheme() helper that already covers the canvas side
of the same theme split. Add a sectionCardColor() function in Theme.kt and
collapse the 3 inline formulas to one call.
2026-05-18 04:12:05 -07:00
..
2025-07-08 12:22:57 +01:00