Reduce text influence over secondary color

This commit is contained in:
Héctor Ramón Jiménez 2025-08-06 18:46:39 +02:00
parent acbb8920de
commit af3125842d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
23 changed files with 24 additions and 24 deletions

View file

@ -529,8 +529,8 @@ 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 weak = mix(deviate(base, 0.1), text, 0.4);
let base = mix(deviate(base, 0.3), text, 0.4);
let weak = mix(deviate(base, 0.1), text, 0.2);
let base = mix(deviate(base, 0.3), text, 0.3);
let strong = mix(deviate(base, 0.5), text, 0.4);
Self {