[apps/shared] Add toggle buttons in Graph view

Change-Id: I7548d11fb114b2605ce34d3bda0776277b79ff9d
This commit is contained in:
Hugo Saint-Vignes
2020-10-08 16:54:32 +02:00
committed by Émilie Feral
parent a76e54642c
commit 2f97dab6d1
20 changed files with 226 additions and 66 deletions

View File

@@ -458,14 +458,14 @@ void CurveView::drawDot(KDContext * ctx, KDRect rect, float x, float y, KDColor
KDCoordinate diameter = 0;
const uint8_t * mask = nullptr;
switch (size) {
case Size::Tiny:
diameter = Dots::TinyDotDiameter;
mask = (const uint8_t *)Dots::TinyDotMask;
break;
case Size::Small:
diameter = Dots::SmallDotDiameter;
mask = (const uint8_t *)Dots::SmallDotMask;
break;
case Size::Medium:
diameter = Dots::MediumDotDiameter;
mask = (const uint8_t *)Dots::MediumDotMask;
break;
default:
assert(size == Size::Large);
diameter = Dots::LargeDotDiameter;