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