Skip to content

Commit

Permalink
Review: Move OudsIconButtonDefaults into OudsIconButton.kt and OudsIc…
Browse files Browse the repository at this point in the history
…onDefaults into OudsIcon.kt
  • Loading branch information
florentmaitre committed Dec 4, 2024
1 parent 0365743 commit abb0d5a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package com.orange.ouds.core.component.button

import androidx.compose.material3.IconButton
import androidx.compose.material3.LocalContentColor
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
Expand All @@ -31,3 +32,10 @@ internal fun OudsIconButton(
OudsIcon(graphicsObject = graphicsObject, contentDescription = contentDescription, tint = tint, enabled = enabled)
}
}

internal object OudsIconButtonDefaults {

val tint: Color
@Composable
get() = LocalContentColor.current
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package com.orange.ouds.core.component.icon

import androidx.compose.material3.Icon
import androidx.compose.material3.LocalContentColor
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
Expand All @@ -35,3 +36,10 @@ internal fun OudsIcon(
else -> {}
}
}

internal object OudsIconDefaults {

val tint: Color
@Composable
get() = LocalContentColor.current
}

This file was deleted.

0 comments on commit abb0d5a

Please sign in to comment.