fix debug draw colors

This commit is contained in:
2025-08-16 21:00:03 +00:00
parent 0ab86ce143
commit 1028468c3f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class _Debug extends StatelessWidget {
bottom: -60,
child: Text(
'ID: ${id.substring(0, 4)}\nGS:(${gs.dx.toInt()},${gs.dy.toInt()})\nSS:(${ss.dx.toInt()},${ss.dy.toInt()})',
style: monospaceStyle,
style: monospaceStyle(context),
),
),
],
+1 -1
View File
@@ -94,7 +94,7 @@ class _LazyCanvasState extends State<LazyCanvas> with TickerProviderStateMixin<L
left: 16,
child: Text(
'Offset: ${widget.controller.offset.coord()}\nScale: ${widget.controller.scale.toStringAsFixed(1)}',
style: monospaceStyle,
style: monospaceStyle(context),
),
),
],
+2 -2
View File
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
final TextStyle monospaceStyle = TextStyle(
color: Colors.black,
TextStyle monospaceStyle(BuildContext context) => TextStyle(
color: Theme.of(context).colorScheme.onSurface,
fontSize: 14,
fontWeight: FontWeight.bold,
fontFamily: 'monospace',