mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Remove unnecessary Box wrapping.
This commit is contained in:
-2
@@ -59,7 +59,6 @@ fun GradientFloatingActionButton(
|
|||||||
shape: Shape = RoundedCornerShape(25),
|
shape: Shape = RoundedCornerShape(25),
|
||||||
content: @Composable () -> Unit,
|
content: @Composable () -> Unit,
|
||||||
) {
|
) {
|
||||||
Box {
|
|
||||||
val linearShaderBrush = remember {
|
val linearShaderBrush = remember {
|
||||||
object : ShaderBrush() {
|
object : ShaderBrush() {
|
||||||
override fun createShader(size: Size): Shader {
|
override fun createShader(size: Size): Shader {
|
||||||
@@ -111,7 +110,6 @@ fun GradientFloatingActionButton(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
|
|||||||
-2
@@ -71,7 +71,6 @@ fun SuperButton(
|
|||||||
ButtonSize.Small -> PaddingValues(horizontal = 16.dp, vertical = 5.dp)
|
ButtonSize.Small -> PaddingValues(horizontal = 16.dp, vertical = 5.dp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Box {
|
|
||||||
val isLightTheme = ElementTheme.isLightTheme
|
val isLightTheme = ElementTheme.isLightTheme
|
||||||
val colors = remember(isLightTheme) {
|
val colors = remember(isLightTheme) {
|
||||||
if (isLightTheme) {
|
if (isLightTheme) {
|
||||||
@@ -131,7 +130,6 @@ fun SuperButton(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
|
|||||||
Reference in New Issue
Block a user