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,
backgroundColor: surfaceContainerLow,
),
menuTheme: MenuThemeData(
style: MenuStyle(
backgroundColor: WidgetStatePropertyAll(primaryContainer),
),
popupMenuTheme: PopupMenuThemeData(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
color: surfaceContainerHigh,
),
textTheme: ThemeData(
fontFamilyFallback: ["sans", "emoji"],

View file

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