From 76e4cbdd290a7ef09e02ccf03b4809af8defb6ec Mon Sep 17 00:00:00 2001 From: Kirill Grouchnikov Date: Mon, 13 Jan 2025 10:15:11 -0500 Subject: [PATCH] Softer texts in title / header areas of tonal Autumn For #400 --- .../radiance/theming/api/skin/AutumnSkin.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/AutumnSkin.java b/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/AutumnSkin.java index c4217a3db..0cebf8e82 100644 --- a/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/AutumnSkin.java +++ b/theming/src/main/java/org/pushingpixels/radiance/theming/api/skin/AutumnSkin.java @@ -219,12 +219,17 @@ public AutumnTonalSkin() { this.registerDecorationAreaSchemeBundle(autumnDefaultBundle, RadianceThemingSlices.DecorationAreaType.NONE); + // Deeper container surfaces in title / header decoration areas, along with slightly + // softer texts / icons (on container overlaid to be on container variant). this.registerDecorationAreaSchemeBundle(autumnDefaultBundle, ColorSchemeUtils.getExtendedContainerTokens( /* seed */ Hct.fromInt(0xFFFFCA8B), /* isFidelity */ true, /* isDark */ false, - /* colorResolver */ PaletteResolverUtils.getPaletteTonalColorResolver()), + /* colorResolver */ PaletteResolverUtils.getPaletteTonalColorResolver().overlayWith( + PaletteContainerColorsResolverOverlay.builder() + .onContainer(DynamicPalette::getOnTonalContainerVariant) + .build())), RadianceThemingSlices.DecorationAreaType.PRIMARY_TITLE_PANE, RadianceThemingSlices.DecorationAreaType.SECONDARY_TITLE_PANE, RadianceThemingSlices.DecorationAreaType.HEADER);