From d31783d293f7683b66b47f5cd3868bcd70d66a33 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Mon, 25 Jun 2018 16:31:02 +0200 Subject: [PATCH] Blood drop! --- components/chart.js | 11 +++++++++-- components/styles.js | 16 ++++++++-------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/components/chart.js b/components/chart.js index cf8a0da..3d03bcc 100644 --- a/components/chart.js +++ b/components/chart.js @@ -6,7 +6,8 @@ import Svg,{ Rect, Text, Circle, - Line + Line, + Path } from 'react-native-svg' import { LocalDate } from 'js-joda' import { getCycleDay, getOrCreateCycleDay, cycleDaysSortedByDate } from '../db' @@ -53,7 +54,13 @@ export default class CycleChart extends Component { {cycleDayNumber} {dateLabel} - {cycleDay && cycleDay.bleeding ? : null} + {cycleDay && cycleDay.bleeding ? + + : null} {y ? this.drawDotAndLines(y, index) : null} diff --git a/components/styles.js b/components/styles.js index fbce12b..41db641 100644 --- a/components/styles.js +++ b/components/styles.js @@ -2,12 +2,12 @@ import config from './config' const styles = { curve: { - stroke: 'lightseagreen', + stroke: '#ffc425', strokeWidth: 2 }, curveDots: { - fill: 'darkblue', - r: 4 + fill: '#00aedb', + r: 6 }, column: { label: { @@ -16,7 +16,7 @@ const styles = { x: 0 }, rect: { - fill: 'lightgrey', + fill: '#f9f9f9', strokeWidth: 1, stroke: 'grey', x: 0, @@ -26,10 +26,10 @@ const styles = { } }, bleedingIcon: { - cx: config.columnMiddle, - cy: 50, - r: 7, - fill: 'red' + fill: '#fb2e01', + scale: 0.6, + x: 7, + y: 3 } }