GlassPanel

fun GlassPanel(tint: Color, border: Color, modifier: Modifier = Modifier, sheen: Boolean = true, cornerRadius: Dp = 12.dp, contentPadding: Dp = 16.dp, content: @Composable ColumnScope.() -> Unit)

Frosted-glass container for content zones that sit above the ambient star field. Three layers build the glass without a drop shadow (the brand forbids shadows — lift comes from light, not depth):

  1. Fill — the tint. Pass a LOW-ALPHA value (e.g. 6–9% white) so the star field shows faintly through; that translucency is the "frost".

  2. Sheen — a top-edge highlight gradient (sheen) fading to transparent, the specular cue that reads as glass. On by default; pass false for a plain tinted panel.

  3. Edge — a 1dp border hairline (LightFaint) defining the rim.

Not a true backdrop blur (Compose has no built-in equivalent of CSS backdrop-filter). On the near-black star field the translucent fill + sheen reads as frost; a real Gaussian backdrop blur would need a capture pass (graphicsLayer + render-effect) or a dedicated library.

Parameters

tint

fill color — pass a low-alpha value so stars show through. An opaque value still works (no frost, just a flat lifted panel).

border

hairline color — palette LightFaint, or Color.Transparent to drop it.

sheen

draw the top specular highlight. Default true.

cornerRadius

default radius-md (12dp).

contentPadding

inner padding. Defaults to space-16.