From e166a4b10202607e15dae09f811535b70aea34e7 Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Sun, 21 May 2023 20:33:01 +0100 Subject: [PATCH] menu: visually distinguish selected background more --- lib/components/canvas/canvas_background_preview.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/components/canvas/canvas_background_preview.dart b/lib/components/canvas/canvas_background_preview.dart index 0674cf2c8..672af8da3 100644 --- a/lib/components/canvas/canvas_background_preview.dart +++ b/lib/components/canvas/canvas_background_preview.dart @@ -42,8 +42,8 @@ class CanvasBackgroundPreview extends StatelessWidget { decoration: BoxDecoration( border: Border.all( color: colorScheme.primary - .withOpacity(0.5) - .withSaturation(selected ? 1 : 0), + .withSaturation(selected ? 1 : 0) + .withOpacity(selected ? 1 : 0.1), width: 2, ), borderRadius: BorderRadius.circular(8), @@ -73,9 +73,11 @@ class CanvasBackgroundPreview extends StatelessWidget { }(), lineHeight: lineHeight, primaryColor: colorScheme.primary - .withSaturation(selected ? 1 : 0), + .withSaturation(selected ? 1 : 0) + .withOpacity(selected ? 1 : 0.5), secondaryColor: colorScheme.secondary - .withSaturation(selected ? 1 : 0), + .withSaturation(selected ? 1 : 0) + .withOpacity(selected ? 1 : 0.5), preview: true, ), ),