Fix detekt issue.
This commit is contained in:
parent
066aaef0fd
commit
e93f245fcf
2 changed files with 9 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
|||
package io.element.android.libraries.designsystem.ruler
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.layout.Layout
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.Dp
|
||||
|
|
@ -31,11 +32,13 @@ import io.element.android.libraries.designsystem.theme.components.Text
|
|||
*/
|
||||
@Composable
|
||||
fun WithRulers(
|
||||
modifier: Modifier = Modifier,
|
||||
xRulersOffset: Dp = 0.dp,
|
||||
yRulersOffset: Dp = 0.dp,
|
||||
content: @Composable () -> Unit
|
||||
) {
|
||||
Layout(
|
||||
modifier = modifier,
|
||||
content = {
|
||||
content()
|
||||
VerticalRuler()
|
||||
|
|
|
|||
|
|
@ -57,11 +57,15 @@ fun DropdownMenuItem(
|
|||
}
|
||||
|
||||
@Composable
|
||||
fun DropdownMenuItemText(text: String) {
|
||||
fun DropdownMenuItemText(
|
||||
text: String,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
Text(
|
||||
text = text,
|
||||
color = ElementTheme.materialColors.primary,
|
||||
style = ElementTheme.typography.fontBodyLgRegular
|
||||
style = ElementTheme.typography.fontBodyLgRegular,
|
||||
modifier = modifier,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue