Skip to content

Commit 19ab292

Browse files
committed
Migrate deprecated black color
1 parent fbdf8db commit 19ab292

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

library-compose/src/main/java/com/spendesk/grapes/compose/appbar/GrapesTopAppBar.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ fun GrapesTopAppBar(
4343
TopAppBar(
4444
modifier = modifier,
4545
title = title,
46-
contentColor = GrapesTheme.colors.mainBlack,
4746
backgroundColor = GrapesTheme.colors.mainWhite,
47+
contentColor = GrapesTheme.colors.structureComplementary,
4848
navigationIcon = navigationIcon,
4949
actions = actions,
5050
elevation = elevationDp

library-compose/src/main/java/com/spendesk/grapes/compose/theme/Colors.kt

-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import androidx.compose.ui.graphics.Color
1212
data class GrapesColors(
1313
@Deprecated("Use semantic color")
1414
val mainWhite: Color,
15-
@Deprecated("Use semantic color")
16-
val mainBlack: Color,
1715

1816
val google: Color,
1917

@@ -57,9 +55,6 @@ data class GrapesColors(
5755
val isLight: Boolean,
5856
)
5957

60-
// Legacy colors
61-
val mainBlack = Color(0xFF000000)
62-
6358
val google = Color(0xFF4285F4)
6459

6560
// Colors

library-compose/src/main/java/com/spendesk/grapes/compose/theme/ColorsPalette.kt

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ fun lightColorsPalette(
1616
primaryLightest: Color = purpleLightest,
1717

1818
white: Color = grayWhite,
19-
black: Color = mainBlack,
2019
surface: Color = white,
2120
complementary: Color = purpleDarker,
2221
background: Color = graySuperLightest,
@@ -49,7 +48,6 @@ fun lightColorsPalette(
4948
alertLightest: Color = redLightest,
5049
): GrapesColors = GrapesColors(
5150
mainWhite = white,
52-
mainBlack = black,
5351
google = google,
5452
primaryDark = primaryDark,
5553
primaryNormal = primaryNormal,

0 commit comments

Comments
 (0)