Skip to content

Commit

Permalink
Add missing isLightTheme imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed Dec 12, 2023
1 parent 4680d68 commit bc87652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ import androidx.compose.ui.unit.dp
import org.wordpress.android.R
import org.wordpress.android.ui.compose.theme.AppColor
import org.wordpress.android.ui.compose.theme.AppTheme
import org.wordpress.android.ui.compose.utils.isLightTheme

@Composable
fun Item(
element: MenuElementData.Item,
onMenuItemClick: (MenuElementData) -> Unit,
) {
val enabledContentColor = MenuColors.itemContentColor()
val disabledContentColor = if (MenuColors.isLightTheme()) {
val disabledContentColor = if (isLightTheme()) {
AppColor.Gray10
} else {
AppColor.Gray50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import me.saket.cascade.CascadeColumnScope
import org.wordpress.android.ui.compose.theme.AppColor
import org.wordpress.android.ui.compose.utils.isLightTheme

@Composable
fun CascadeColumnScope.SubMenu(
element: MenuElementData.SubMenu,
onMenuItemClick: (MenuElementData) -> Unit,
) {
val enabledContentColor = MenuColors.itemContentColor()
val disabledContentColor = if (MenuColors.isLightTheme()) {
val disabledContentColor = if (isLightTheme()) {
AppColor.Gray10
} else {
AppColor.Gray50
Expand Down

0 comments on commit bc87652

Please sign in to comment.