diff --git a/core/src/theme/palette.rs b/core/src/theme/palette.rs index 96a48695..dfd8acf0 100644 --- a/core/src/theme/palette.rs +++ b/core/src/theme/palette.rs @@ -525,11 +525,9 @@ pub struct Secondary { impl Secondary { /// Generates a set of [`Secondary`] colors from the base and text colors. pub fn generate(base: Color, text: Color) -> Self { - let bump = if is_dark(base) { 0.0 } else { 0.01 }; - - let weak = mix(deviate(base, 0.1 + bump), text, 0.4); - let base = mix(deviate(base, 0.3 + bump), text, 0.4); - let strong = mix(deviate(base, 0.5 + bump), text, 0.4); + let weak = mix(deviate(base, 0.1), text, 0.4); + let base = mix(deviate(base, 0.3), text, 0.4); + let strong = mix(deviate(base, 0.5), text, 0.4); Self { base: Pair::new(base, text), diff --git a/examples/styling/snapshots/catppuccin_latte-tiny-skia.sha256 b/examples/styling/snapshots/catppuccin_latte-tiny-skia.sha256 index 4f164ab7..9fe9007a 100644 --- a/examples/styling/snapshots/catppuccin_latte-tiny-skia.sha256 +++ b/examples/styling/snapshots/catppuccin_latte-tiny-skia.sha256 @@ -1 +1 @@ -661e3f5313b98c65fd0ce9615d9a42201f2b1bafe0285b4a9c5c5af403782452 \ No newline at end of file +46f6341d1e3f63ddb4a6a9a11f0efee4dcb076861c351258a3d29095d67c170d \ No newline at end of file diff --git a/examples/styling/snapshots/gruvbox_light-tiny-skia.sha256 b/examples/styling/snapshots/gruvbox_light-tiny-skia.sha256 index d49549ed..8672a54b 100644 --- a/examples/styling/snapshots/gruvbox_light-tiny-skia.sha256 +++ b/examples/styling/snapshots/gruvbox_light-tiny-skia.sha256 @@ -1 +1 @@ -9d91bfb3504ebf59881ca1554fa63f7293c2750f7ff15a91ff8e86ccf65a0f6f \ No newline at end of file +3131fd97275095e2c562341e3b0b13dfbed45e2461595b692f20dae0e5941dba \ No newline at end of file diff --git a/examples/styling/snapshots/kanagawa_lotus-tiny-skia.sha256 b/examples/styling/snapshots/kanagawa_lotus-tiny-skia.sha256 index 32759d28..cc334448 100644 --- a/examples/styling/snapshots/kanagawa_lotus-tiny-skia.sha256 +++ b/examples/styling/snapshots/kanagawa_lotus-tiny-skia.sha256 @@ -1 +1 @@ -8209ef9862c56280f711a477843f6d9ab2d1b201ba257f553c9ad2caf0c78731 \ No newline at end of file +59a02d3278a9f321731c11c182edc897f87c2703af5f14a6e76dbea6e505fcc6 \ No newline at end of file diff --git a/examples/styling/snapshots/light-tiny-skia.sha256 b/examples/styling/snapshots/light-tiny-skia.sha256 index 5e68c473..0a1e8669 100644 --- a/examples/styling/snapshots/light-tiny-skia.sha256 +++ b/examples/styling/snapshots/light-tiny-skia.sha256 @@ -1 +1 @@ -dd82fb5d72db1a33c52bbd27836dbed0c51af5a8bc726c4d73865af779701aba \ No newline at end of file +b61b166bca3dce77002300e60ae778000ea00df5b5973f106ce58ce6d5e0b501 \ No newline at end of file diff --git a/examples/styling/snapshots/solarized_light-tiny-skia.sha256 b/examples/styling/snapshots/solarized_light-tiny-skia.sha256 index 4d5150b3..93cb2d82 100644 --- a/examples/styling/snapshots/solarized_light-tiny-skia.sha256 +++ b/examples/styling/snapshots/solarized_light-tiny-skia.sha256 @@ -1 +1 @@ -73f01efd56087daa9372aed4b5e5d72d8f5713d75812978bf09a726684ea2b40 \ No newline at end of file +ce493d0c75ecce3eedb82c459c6d3ac674a4f8ee0bdaf3a912ff8ef8e57e5b32 \ No newline at end of file diff --git a/examples/styling/snapshots/tokyo_night_light-tiny-skia.sha256 b/examples/styling/snapshots/tokyo_night_light-tiny-skia.sha256 index 69c59503..bf0eea38 100644 --- a/examples/styling/snapshots/tokyo_night_light-tiny-skia.sha256 +++ b/examples/styling/snapshots/tokyo_night_light-tiny-skia.sha256 @@ -1 +1 @@ -91d09c382a9d615a1ba68f74463c9a92baba705e35bb84173945d2fa5fd240d0 \ No newline at end of file +40441bc94b7c524c5064ff155a0db28d896109c3cce4da6822efefd71b3a9a92 \ No newline at end of file