Skip to content

Commit

Permalink
mattttvaughn#89 Accessible text colors. Both secondary text colors no…
Browse files Browse the repository at this point in the history
…w have >4.5:1 contrast ratio with the primary background, making them easier to read and WCAG AA compliant. textSecondary still has a touch of purple and textActiveSecondary is still cyan, both still able to be differentiated from their primary text colors while being lighter on the background.
  • Loading branch information
marekmutch committed Sep 29, 2023
1 parent 3477be6 commit 4af36fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,12 @@ class CurrentlyPlayingViewModel(
}
R.string.sleep_timer_duration_end_of_chapter -> {
val duration = (
((chapterDuration.value ?: 0L) - (
chapterProgress.value
?: 0L
)) / prefsRepo.playbackSpeed
(
(chapterDuration.value ?: 0L) - (
chapterProgress.value
?: 0L
)
) / prefsRepo.playbackSpeed
).toLong()
BEGIN to duration
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<color name="colorPrimaryDark">#191A2A</color>
<color name="colorAccent">#00B8D4</color>
<color name="textPrimary">#D8FFFFFF</color>
<color name="textSecondary">#7BB998CC</color>
<color name="textSecondary">#9EE3D5EB</color>
<color name="textActive">#00B8D4</color>
<color name="textActiveSecondary">#7B00B8D4</color>
<color name="textActiveSecondary">#9E81E8F7</color>
<color name="textError">#FF4444</color>
<color name="icon">@color/textPrimary</color>
<color name="iconActive">@color/colorAccent</color>
Expand Down

0 comments on commit 4af36fd

Please sign in to comment.