fix: round dropdown menu corners via theme shapes

Material 3 menus use shapes.extraSmall (4dp default) which looked boxy;
bump to 14dp so all dropdown popups (view switcher, group switcher, ...)
get rounded corners matching the iOS look.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Guido Schmit
2026-06-12 21:39:03 +02:00
parent e7bed5c5a8
commit b172a8f055

View File

@@ -1,10 +1,13 @@
package com.scarriffle.calendarr.ui.theme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Shapes
import androidx.compose.material3.Typography
import androidx.compose.material3.darkColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import com.scarriffle.calendarr.domain.model.AppSettings
import com.scarriffle.calendarr.util.colorFromHex
import com.scarriffle.calendarr.util.contrastingTextColor
@@ -53,6 +56,9 @@ fun CalendarrTheme(
MaterialTheme(
colorScheme = colors,
typography = Typography(),
// extraSmall drives DropdownMenu containers (default 4dp looks boxy);
// rounder popups to match the iOS look.
shapes = Shapes(extraSmall = RoundedCornerShape(14.dp)),
content = content,
)
}