Skip to content

Commit

Permalink
Migrate deprecated black color
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainGF committed Apr 10, 2024
1 parent fbdf8db commit 19ab292
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ fun GrapesTopAppBar(
TopAppBar(
modifier = modifier,
title = title,
contentColor = GrapesTheme.colors.mainBlack,
backgroundColor = GrapesTheme.colors.mainWhite,
contentColor = GrapesTheme.colors.structureComplementary,
navigationIcon = navigationIcon,
actions = actions,
elevation = elevationDp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import androidx.compose.ui.graphics.Color
data class GrapesColors(
@Deprecated("Use semantic color")
val mainWhite: Color,
@Deprecated("Use semantic color")
val mainBlack: Color,

val google: Color,

Expand Down Expand Up @@ -57,9 +55,6 @@ data class GrapesColors(
val isLight: Boolean,
)

// Legacy colors
val mainBlack = Color(0xFF000000)

val google = Color(0xFF4285F4)

// Colors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ fun lightColorsPalette(
primaryLightest: Color = purpleLightest,

white: Color = grayWhite,
black: Color = mainBlack,
surface: Color = white,
complementary: Color = purpleDarker,
background: Color = graySuperLightest,
Expand Down Expand Up @@ -49,7 +48,6 @@ fun lightColorsPalette(
alertLightest: Color = redLightest,
): GrapesColors = GrapesColors(
mainWhite = white,
mainBlack = black,
google = google,
primaryDark = primaryDark,
primaryNormal = primaryNormal,
Expand Down

0 comments on commit 19ab292

Please sign in to comment.