Skip to content

Commit

Permalink
Use normal text color if text inverse color is dark (dark mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkeppeler committed Dec 14, 2020
1 parent a7d2eb7 commit 07fb5bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class CalendarSheet : BottomSheet() {
iconColor = getIconColor(requireContext())
highlightColor = getHighlightColor(requireContext())
colorText = getTextColor(requireContext())
colorTextInverse = getTextInverseColor(requireContext())
colorTextInverse = getTextInverseColor(requireContext()).takeUnless { it.isColorDark() } ?: colorText

val shapeModelRound = ShapeAppearanceModel().toBuilder().apply {
setAllCorners(CornerFamily.ROUNDED, 45.getDp())
Expand Down

0 comments on commit 07fb5bd

Please # to comment.