Skip to content

Commit

Permalink
menu: visually distinguish selected background more
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed May 21, 2023
1 parent b8cf421 commit e166a4b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/components/canvas/canvas_background_preview.dart
Expand Up @@ -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),
Expand Down Expand Up @@ -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,
),
),
Expand Down

0 comments on commit e166a4b

Please sign in to comment.