Appearance
Esta página aún no está disponible en tu idioma.
Colours (ARGB ints), font and corner radius for the button and the window. With INHERIT (default) they follow your app theme, dark included.
Properties
Section titled “Properties”themeThemeOpcional= Theme.INHERITcolorPrimaryInt?Opcional= nullARGB colour ints (android.graphics.Color / Compose toArgb()). Buttons, the tape line, the "connected" dot.
colorBackgroundInt?Opcional= nullcolorTextInt?Opcional= nullfontFamilyString?Opcional= nullA CSS font-family for the window (e.g. "Inter, Roboto, sans-serif"). The native button uses the Compose text style where it is placed.
borderRadiusFloat?Opcional= nullCorner radius in dp (0–32) for cards, inputs and buttons.
fontsList<String>Opcional= emptyList()Stylesheets with @font-face rules for the window (Google Fonts only).
Example
Section titled “Example”val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration( appearance = Appearance(borderRadius = 10f), locale = "es",))let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init( appearance: Appearance(borderRadius: 10), locale: "es"))await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.