Skip to content

Commit

Permalink
Align naming of the tonal container color token APIs
Browse files Browse the repository at this point in the history
For #400
  • Loading branch information
kirill-grouchnikov committed Jan 6, 2025
1 parent 0caa773 commit 7f51493
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ public static ContainerColorTokens getLightTonalFidelityContainerTokens(Hct seed
/* palette */ TonalPalette.fromHct(seed));
}

public static ContainerColorTokens getLightBalancedContainerTokens(Hct seed) {
public static ContainerColorTokens getLightTonalBalancedContainerTokens(Hct seed) {
return ColorSchemeUtils.getLightTonalContainerTokens(
/* sourceColorHct */ seed,
/* isFidelity */ false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public BusinessBlueSteelTonalSkin() {
Hct.fromInt(0xFF83AFCE)))
.withActiveControlsAccent(ColorSchemeUtils.getLightTonalFidelityColorScheme(
Hct.fromInt(0xFF98B7CC), Hct.fromInt(0xFFC4C8CC), Hct.fromInt(0xFFE4EAF0)))
.withHighlightsAccent(ColorSchemeUtils.getLightBalancedContainerTokens(
.withHighlightsAccent(ColorSchemeUtils.getLightTonalBalancedContainerTokens(
Hct.fromInt(0xFFEBD296))));

RadianceColorScheme2 controlPaneColorScheme =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public BusinessTonalSkin() {
super(new AccentBuilder()
.withWindowChromeAccent(ColorSchemeUtils.getLightTonalFidelityColorScheme(
Hct.fromInt(0xFFBDC8D3), Hct.fromInt(0xFFDEDDDF), Hct.fromInt(0xFFE4EAF0)))
.withWindowChromeHighlightsAccent(ColorSchemeUtils.getLightBalancedContainerTokens(
.withWindowChromeHighlightsAccent(ColorSchemeUtils.getLightTonalBalancedContainerTokens(
Hct.fromInt(0xFFEBD296)))
.withActiveControlsAccent(ColorSchemeUtils.getLightTonalFidelityColorScheme(
Hct.fromInt(0xFFEAEDF3), Hct.fromInt(0xFFC4C8CC), Hct.fromInt(0xFFE5EAEF)))
.withHighlightsAccent(ColorSchemeUtils.getLightBalancedContainerTokens(
.withHighlightsAccent(ColorSchemeUtils.getLightTonalBalancedContainerTokens(
Hct.fromInt(0xFFEBD296))));
}

Expand Down

0 comments on commit 7f51493

Please sign in to comment.