round menus

This commit is contained in:
Henry Hiles 2026-05-26 21:26:40 -04:00
commit 5daa861a31
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 3 additions and 5 deletions

View file

@ -7,10 +7,9 @@ extension SchemeToTheme on ColorScheme {
titleSpacing: 0, titleSpacing: 0,
backgroundColor: surfaceContainerLow, backgroundColor: surfaceContainerLow,
), ),
menuTheme: MenuThemeData( popupMenuTheme: PopupMenuThemeData(
style: MenuStyle( shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
backgroundColor: WidgetStatePropertyAll(primaryContainer), color: surfaceContainerHigh,
),
), ),
textTheme: ThemeData( textTheme: ThemeData(
fontFamilyFallback: ["sans", "emoji"], fontFamilyFallback: ["sans", "emoji"],

View file

@ -16,7 +16,6 @@ extension ShowContextMenu on BuildContext {
overlay.size.width - globalPosition.dx, overlay.size.width - globalPosition.dx,
overlay.size.height - globalPosition.dy, overlay.size.height - globalPosition.dy,
), ),
color: Theme.of(this).colorScheme.surfaceContainerHighest,
items: children, items: children,
); );
} }