diff --git a/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/ColorSchemeUtils.java b/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/ColorSchemeUtils.java index 60b636644..e61a21b2a 100644 --- a/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/ColorSchemeUtils.java +++ b/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/ColorSchemeUtils.java @@ -900,8 +900,8 @@ public static RadianceColorScheme2 getDarkPrimaryFidelityColorScheme( return result; } - public static ContainerColorTokens getLightContainerTokens(Hct sourceColorHct, - boolean isFidelity, TonalPalette palette, ActiveStatesContainerType activeStatesContainerType) { + public static ContainerColorTokens getLightTonalContainerTokens(Hct sourceColorHct, + boolean isFidelity, TonalPalette palette) { DynamicPalette dynamicPalette = new DynamicPalette( /* sourceColorHct */ sourceColorHct, @@ -911,25 +911,23 @@ public static ContainerColorTokens getLightContainerTokens(Hct sourceColorHct, /* palette */ palette); PaletteContainerColorsResolver paletteColorResolver = - PaletteResolverUtils.getPaletteColorResolver(); + PaletteResolverUtils.getPaletteTonalColorResolver(); return getContainerTokens(dynamicPalette, paletteColorResolver); } public static ContainerColorTokens getLightTonalFidelityContainerTokens(Hct seed) { - return ColorSchemeUtils.getLightContainerTokens( + return ColorSchemeUtils.getLightTonalContainerTokens( /* sourceColorHct */ seed, /* isFidelity */ true, - /* palette */ TonalPalette.fromHct(seed), - /* activeStatesContainerType */ ColorSchemeUtils.ActiveStatesContainerType.TONAL); + /* palette */ TonalPalette.fromHct(seed)); } - public static ContainerColorTokens getLightTonalBalancedContainerTokens(Hct seed) { - return ColorSchemeUtils.getLightContainerTokens( + public static ContainerColorTokens getLightBalancedContainerTokens(Hct seed) { + return ColorSchemeUtils.getLightTonalContainerTokens( /* sourceColorHct */ seed, /* isFidelity */ false, - /* palette */ TonalPalette.fromHct(seed), - /* activeStatesContainerType */ ColorSchemeUtils.ActiveStatesContainerType.TONAL); + /* palette */ TonalPalette.fromHct(seed)); } public static ContainerColorTokens tint(ContainerColorTokens original, float tintFactor) { diff --git a/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/PaletteResolverUtils.java b/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/PaletteResolverUtils.java index 39ee8bd9f..31c7d1df7 100644 --- a/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/PaletteResolverUtils.java +++ b/theming/src/main/java/org/pushingpixels/radiance/theming/api/palette/PaletteResolverUtils.java @@ -34,52 +34,52 @@ import java.awt.*; public class PaletteResolverUtils { - public static PaletteContainerColorsResolver getPaletteColorResolver() { + public static PaletteContainerColorsResolver getPaletteTonalColorResolver() { PaletteContainerColorsResolver result = new PaletteContainerColorsResolver() { @Override public Color getContainerSurfaceLowest(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getContainerSurfaceLowest()); + return new Color(dynamicPalette.getTonalContainerSurfaceLowest()); } @Override public Color getContainerSurfaceLow(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getContainerSurfaceLow()); + return new Color(dynamicPalette.getTonalContainerSurfaceLow()); } @Override public Color getContainerSurface(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getContainerSurface()); + return new Color(dynamicPalette.getTonalContainerSurface()); } @Override public Color getContainerSurfaceHigh(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getContainerSurfaceHigh()); + return new Color(dynamicPalette.getTonalContainerSurfaceHigh()); } @Override public Color getContainerSurfaceHighest(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getContainerSurfaceHighest()); + return new Color(dynamicPalette.getTonalContainerSurfaceHighest()); } @Override public Color getOnContainer(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getOnContainer()); + return new Color(dynamicPalette.getOnTonalContainer()); } @Override public Color getOnContainerVariant(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getOnContainerVariant()); + return new Color(dynamicPalette.getOnTonalContainerVariant()); } @Override public Color getContainerOutline(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getContainerOutline()); + return new Color(dynamicPalette.getTonalContainerOutline()); } @Override public Color getContainerOutlineVariant(DynamicPalette dynamicPalette) { - return new Color(dynamicPalette.getContainerOutlineVariant()); + return new Color(dynamicPalette.getTonalContainerOutlineVariant()); } }; return result; diff --git a/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessBlueSteelSkin.java b/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessBlueSteelSkin.java index f1ea8e330..6b49d554c 100644 --- a/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessBlueSteelSkin.java +++ b/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessBlueSteelSkin.java @@ -104,7 +104,7 @@ public BusinessBlueSteelTonalSkin() { Hct.fromInt(0xFF83AFCE))) .withActiveControlsAccent(ColorSchemeUtils.getLightTonalFidelityColorScheme( Hct.fromInt(0xFF98B7CC), Hct.fromInt(0xFFC4C8CC), Hct.fromInt(0xFFE4EAF0))) - .withHighlightsAccent(ColorSchemeUtils.getLightTonalBalancedContainerTokens( + .withHighlightsAccent(ColorSchemeUtils.getLightBalancedContainerTokens( Hct.fromInt(0xFFEBD296)))); RadianceColorScheme2 controlPaneColorScheme = diff --git a/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessSkin.java b/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessSkin.java index c9dab438a..1a5e0db65 100644 --- a/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessSkin.java +++ b/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/BusinessSkin.java @@ -66,11 +66,11 @@ public BusinessTonalSkin() { super(new AccentBuilder() .withWindowChromeAccent(ColorSchemeUtils.getLightTonalFidelityColorScheme( Hct.fromInt(0xFFBDC8D3), Hct.fromInt(0xFFDEDDDF), Hct.fromInt(0xFFE4EAF0))) - .withWindowChromeHighlightsAccent(ColorSchemeUtils.getLightTonalBalancedContainerTokens( + .withWindowChromeHighlightsAccent(ColorSchemeUtils.getLightBalancedContainerTokens( Hct.fromInt(0xFFEBD296))) .withActiveControlsAccent(ColorSchemeUtils.getLightTonalFidelityColorScheme( Hct.fromInt(0xFFEAEDF3), Hct.fromInt(0xFFC4C8CC), Hct.fromInt(0xFFE5EAEF))) - .withHighlightsAccent(ColorSchemeUtils.getLightTonalBalancedContainerTokens( + .withHighlightsAccent(ColorSchemeUtils.getLightBalancedContainerTokens( Hct.fromInt(0xFFEBD296)))); }