diff --git a/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/Item.kt b/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/Item.kt index bcd82bd649b7..83de5b66cb53 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/Item.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/Item.kt @@ -18,6 +18,7 @@ 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( @@ -25,7 +26,7 @@ fun Item( onMenuItemClick: (MenuElementData) -> Unit, ) { val enabledContentColor = MenuColors.itemContentColor() - val disabledContentColor = if (MenuColors.isLightTheme()) { + val disabledContentColor = if (isLightTheme()) { AppColor.Gray10 } else { AppColor.Gray50 diff --git a/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/SubMenu.kt b/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/SubMenu.kt index 9657864d1b3e..5e7a3a9755d0 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/SubMenu.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/compose/components/menu/dropdown/SubMenu.kt @@ -10,6 +10,7 @@ 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( @@ -17,7 +18,7 @@ fun CascadeColumnScope.SubMenu( onMenuItemClick: (MenuElementData) -> Unit, ) { val enabledContentColor = MenuColors.itemContentColor() - val disabledContentColor = if (MenuColors.isLightTheme()) { + val disabledContentColor = if (isLightTheme()) { AppColor.Gray10 } else { AppColor.Gray50