SlideshowTheme
data class SlideshowTheme(val contentColor: Color = Color.White, val backgroundColor: Color = Color.DarkGray, val baseTextStyle: TextStyle = TextStyle(fontSize = 18.sp), val titleStyle: TextStyle = TextStyle(
fontSize = 48.sp,
textAlign = Center,
fontWeight = FontWeight.Bold
), val subtitleStyle: TextStyle = TextStyle(
fontSize = 36.sp,
textAlign = Center
), val headerStyle: TextStyle = TextStyle(fontSize = 28.sp), val footerStyle: TextStyle = TextStyle(fontSize = 12.sp), val gap: Dp = 16.dp, val aspectRatio: Float = 16 / 9f)
Defines the visual styling for a Slideshow.
Parameters
contentColor
Default color used for text and SlideDivider.
backgroundColor
Color used as the background for slides.
baseTextStyle
Default TextStyle used for all slide content. Some scaffolds use other styles from the theme for certain slots.
titleStyle
Default TextStyle used for TitleSlide titles.
subtitleStyle
Default TextStyle used for TitleSlide subtitles.
gap
Default margins used for BodySlides and spacing between header, body, and footer.
aspectRatio
The aspect ratio for the entire slideshow.
Constructors
Link copied to clipboard
constructor(contentColor: Color = Color.White, backgroundColor: Color = Color.DarkGray, baseTextStyle: TextStyle = TextStyle(fontSize = 18.sp), titleStyle: TextStyle = TextStyle(
fontSize = 48.sp,
textAlign = Center,
fontWeight = FontWeight.Bold
), subtitleStyle: TextStyle = TextStyle(
fontSize = 36.sp,
textAlign = Center
), headerStyle: TextStyle = TextStyle(fontSize = 28.sp), footerStyle: TextStyle = TextStyle(fontSize = 12.sp), gap: Dp = 16.dp, aspectRatio: Float = 16 / 9f)