Blood drop!

This commit is contained in:
Julia Friesel
2018-06-25 16:31:02 +02:00
parent 7f88262435
commit d31783d293
2 changed files with 17 additions and 10 deletions
+9 -2
View File
@@ -6,7 +6,8 @@ import Svg,{
Rect, Rect,
Text, Text,
Circle, Circle,
Line Line,
Path
} from 'react-native-svg' } from 'react-native-svg'
import { LocalDate } from 'js-joda' import { LocalDate } from 'js-joda'
import { getCycleDay, getOrCreateCycleDay, cycleDaysSortedByDate } from '../db' import { getCycleDay, getOrCreateCycleDay, cycleDaysSortedByDate } from '../db'
@@ -53,7 +54,13 @@ export default class CycleChart extends Component {
<Text {...labelProps} y={config.cycleDayNumberRowY}>{cycleDayNumber}</Text> <Text {...labelProps} y={config.cycleDayNumberRowY}>{cycleDayNumber}</Text>
<Text {...labelProps} y={config.dateRowY}>{dateLabel}</Text> <Text {...labelProps} y={config.dateRowY}>{dateLabel}</Text>
{cycleDay && cycleDay.bleeding ? <Circle {...styles.bleedingIcon} /> : null} {cycleDay && cycleDay.bleeding ?
<Path {...styles.bleedingIcon}
d="M15 3
Q16.5 6.8 25 18
A12.8 12.8 0 1 1 5 18
Q13.5 6.8 15 3z" />
: null}
{y ? this.drawDotAndLines(y, index) : null} {y ? this.drawDotAndLines(y, index) : null}
</G> </G>
+8 -8
View File
@@ -2,12 +2,12 @@ import config from './config'
const styles = { const styles = {
curve: { curve: {
stroke: 'lightseagreen', stroke: '#ffc425',
strokeWidth: 2 strokeWidth: 2
}, },
curveDots: { curveDots: {
fill: 'darkblue', fill: '#00aedb',
r: 4 r: 6
}, },
column: { column: {
label: { label: {
@@ -16,7 +16,7 @@ const styles = {
x: 0 x: 0
}, },
rect: { rect: {
fill: 'lightgrey', fill: '#f9f9f9',
strokeWidth: 1, strokeWidth: 1,
stroke: 'grey', stroke: 'grey',
x: 0, x: 0,
@@ -26,10 +26,10 @@ const styles = {
} }
}, },
bleedingIcon: { bleedingIcon: {
cx: config.columnMiddle, fill: '#fb2e01',
cy: 50, scale: 0.6,
r: 7, x: 7,
fill: 'red' y: 3
} }
} }