Skip to content

Commit

Permalink
Fix day item highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
ronjunevaldoz committed Mar 13, 2024
1 parent 6266274 commit 7f1b79d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.github.ronjunevaldoz.kmp_calendar
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down Expand Up @@ -60,7 +61,7 @@ fun DefaultCalendarDayItem(
if (isDaySelected) {
Box(
modifier = Modifier
.size(30.dp)
.fillMaxSize()
.background(primaryColor, CircleShape)
)
}
Expand All @@ -76,7 +77,7 @@ fun DefaultCalendarDayItem(
if (!sameRange) {
Box(
modifier = Modifier
.size(30.dp)
.fillMaxSize()
.background(
primaryColor.copy(0.5f),
rangeShape
Expand All @@ -86,7 +87,7 @@ fun DefaultCalendarDayItem(
if (isPrimary) {
Box(
modifier = Modifier
.size(30.dp)
.fillMaxSize()
.background(
primaryColor,
CircleShape
Expand Down

0 comments on commit 7f1b79d

Please sign in to comment.