@@ -61,8 +61,10 @@ import com.patrykandpatrick.vico.core.cartesian.marker.DefaultCartesianMarker
6161import com.patrykandpatrick.vico.core.cartesian.marker.LineCartesianLayerMarkerTarget
6262import com.patrykandpatrick.vico.core.common.Fill
6363import com.patrykandpatrick.vico.core.common.Insets
64+ import com.patrykandpatrick.vico.core.common.component.ShapeComponent
6465import com.patrykandpatrick.vico.core.common.shader.ShaderProvider
6566import com.patrykandpatrick.vico.core.common.shape.CorneredShape
67+ import com.patrykandpatrick.vico.core.common.shape.DashedShape
6668import org.nsh07.pomodoro.ui.theme.TomatoTheme
6769import org.nsh07.pomodoro.utils.millisecondsToHours
6870import org.nsh07.pomodoro.utils.millisecondsToHoursMinutes
@@ -127,14 +129,14 @@ fun TimeLineChart(
127129 ),
128130 startAxis = VerticalAxis .rememberStart(
129131 line = rememberLineComponent(Fill .Transparent ),
130- label = rememberTextComponent(typeface = axisTypeface),
132+ label = rememberTextComponent(colorScheme.onSurface, axisTypeface),
131133 tick = rememberLineComponent(Fill .Transparent ),
132134 guideline = rememberLineComponent(Fill .Transparent ),
133135 valueFormatter = yValueFormatter
134136 ),
135137 bottomAxis = HorizontalAxis .rememberBottom(
136138 line = rememberLineComponent(Fill .Transparent ),
137- label = rememberTextComponent(typeface = axisTypeface),
139+ label = rememberTextComponent(colorScheme.onSurface, axisTypeface),
138140 tick = rememberLineComponent(Fill .Transparent ),
139141 guideline = rememberLineComponent(Fill .Transparent ),
140142 valueFormatter = xValueFormatter
@@ -152,7 +154,22 @@ fun TimeLineChart(
152154 padding = Insets (verticalDp = 4f , horizontalDp = 8f ),
153155 margins = Insets (bottomDp = 2f )
154156 ),
155- valueFormatter = markerValueFormatter
157+ valueFormatter = markerValueFormatter,
158+ indicator = {
159+ ShapeComponent (
160+ fill = fill(it),
161+ shape = CorneredShape .Pill ,
162+ margins = Insets (3f )
163+ )
164+ },
165+ guideline = rememberLineComponent(
166+ fill = fill(colorScheme.primary),
167+ shape = DashedShape (
168+ shape = CorneredShape .Pill ,
169+ dashLengthDp = 16f ,
170+ gapLengthDp = 8f
171+ )
172+ )
156173 ),
157174 fadingEdges = rememberFadingEdges()
158175 ),
0 commit comments