mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:01:40 +00:00
Fix detekt issue.
This commit is contained in:
committed by
Benoit Marty
parent
066aaef0fd
commit
e93f245fcf
+3
@@ -17,6 +17,7 @@
|
|||||||
package io.element.android.libraries.designsystem.ruler
|
package io.element.android.libraries.designsystem.ruler
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.layout.Layout
|
import androidx.compose.ui.layout.Layout
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.Dp
|
import androidx.compose.ui.unit.Dp
|
||||||
@@ -31,11 +32,13 @@ import io.element.android.libraries.designsystem.theme.components.Text
|
|||||||
*/
|
*/
|
||||||
@Composable
|
@Composable
|
||||||
fun WithRulers(
|
fun WithRulers(
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
xRulersOffset: Dp = 0.dp,
|
xRulersOffset: Dp = 0.dp,
|
||||||
yRulersOffset: Dp = 0.dp,
|
yRulersOffset: Dp = 0.dp,
|
||||||
content: @Composable () -> Unit
|
content: @Composable () -> Unit
|
||||||
) {
|
) {
|
||||||
Layout(
|
Layout(
|
||||||
|
modifier = modifier,
|
||||||
content = {
|
content = {
|
||||||
content()
|
content()
|
||||||
VerticalRuler()
|
VerticalRuler()
|
||||||
|
|||||||
+6
-2
@@ -57,11 +57,15 @@ fun DropdownMenuItem(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun DropdownMenuItemText(text: String) {
|
fun DropdownMenuItemText(
|
||||||
|
text: String,
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = text,
|
text = text,
|
||||||
color = ElementTheme.materialColors.primary,
|
color = ElementTheme.materialColors.primary,
|
||||||
style = ElementTheme.typography.fontBodyLgRegular
|
style = ElementTheme.typography.fontBodyLgRegular,
|
||||||
|
modifier = modifier,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user