Reduce text influence over secondary color
This commit is contained in:
parent
acbb8920de
commit
af3125842d
23 changed files with 24 additions and 24 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue