UI fixes and league

This commit is contained in:
Jan Pleterski
2026-11-28 12:22:02 +01:00
parent 2fc741a9f6
commit 258303deb8
118 changed files with 1439 additions and 537 deletions
+4 -4
View File
@@ -200,7 +200,7 @@ class _ChartPainter extends CustomPainter {
// Gridlines + y labels in each axis series' colour
final grid = Paint()
..color = gridColor
..strokeWidth = 1;
..strokeWidth = 0.6;
for (final f in [0.0, 0.5, 1.0]) {
final y = plot.bottom - plot.height * f;
canvas.drawLine(Offset(axis, y), Offset(size.width - axis, y), grid);
@@ -232,7 +232,7 @@ class _ChartPainter extends CustomPainter {
path,
Paint()
..color = s.color
..strokeWidth = 2
..strokeWidth = 1.2
..style = PaintingStyle.stroke
..strokeJoin = StrokeJoin.round,
);
@@ -240,8 +240,8 @@ class _ChartPainter extends CustomPainter {
for (int i = 0; i < n; i++) {
final isSel = i == selected;
final p = Offset(xAt(i), yAt(s.values[i], r));
canvas.drawCircle(p, isSel ? 6 : 4.5, Paint()..color = surfaceColor);
canvas.drawCircle(p, isSel ? 4.5 : 3.5, Paint()..color = s.color);
canvas.drawCircle(p, isSel ? 5 : 2.8, Paint()..color = surfaceColor);
canvas.drawCircle(p, isSel ? 3.8 : 2, Paint()..color = s.color);
}
}