mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
refactor: override FlexiTheme for Sizes
This commit is contained in:
@@ -32,7 +32,17 @@ fun FlexiTheme(
|
||||
colors: Colors = FlexiTheme.colors,
|
||||
shapes: Shapes = FlexiTheme.shapes,
|
||||
typography: Typography = FlexiTheme.typography,
|
||||
sizes: Sizes = FlexiTheme.sizes,
|
||||
content: @Composable () -> Unit
|
||||
) {
|
||||
FlexiTheme(colors, shapes, typography, FlexiTheme.sizes, content)
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun FlexiTheme(
|
||||
colors: Colors = FlexiTheme.colors,
|
||||
shapes: Shapes = FlexiTheme.shapes,
|
||||
typography: Typography = FlexiTheme.typography,
|
||||
sizes: Sizes,
|
||||
content: @Composable () -> Unit
|
||||
) {
|
||||
CompositionLocalProvider(
|
||||
|
Reference in New Issue
Block a user