gradientes
This commit is contained in:
parent
32576dce87
commit
d5f140b95c
2 changed files with 17 additions and 10 deletions
|
@ -1,8 +1,18 @@
|
|||
toolbarview#main {
|
||||
/* from amberol */
|
||||
background: linear-gradient(127deg, color-mix(in srgb, var(--background-color-0) 55%, transparent), color-mix(in srgb, var(--background-color-0) 0%, transparent) 70.71%),
|
||||
linear-gradient(217deg, color-mix(in srgb, var(--background-color-1) 55%, transparent), color-mix(in srgb, var(--background-color-1) 0%, transparent) 70.71%),
|
||||
linear-gradient(336deg, color-mix(in srgb, var(--background-color-2) 55%, transparent), color-mix(in srgb, var(--background-color-2) 0%, transparent) 70.71%);
|
||||
background:
|
||||
linear-gradient(
|
||||
127deg,
|
||||
color-mix(in srgb, var(--background-color-0) 55%, transparent),
|
||||
color-mix(in srgb, var(--background-color-0) 0%, transparent) 70.71%),
|
||||
linear-gradient(
|
||||
217deg,
|
||||
color-mix(in srgb, var(--background-color-1) 55%, transparent),
|
||||
color-mix(in srgb, var(--background-color-1) 0%, transparent) 70.71%),
|
||||
linear-gradient(
|
||||
336deg,
|
||||
color-mix(in srgb, var(--background-color-2) 55%, transparent),
|
||||
color-mix(in srgb, var(--background-color-2) 0%, transparent) 70.71%);
|
||||
transition-property: background;
|
||||
transition-duration: 250ms;
|
||||
transition-timing-function: ease;
|
||||
|
|
|
@ -690,8 +690,8 @@ mod imp {
|
|||
} else {
|
||||
color_thief::ColorFormat::Rgb
|
||||
},
|
||||
5,
|
||||
4,
|
||||
8,
|
||||
3,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
|
@ -709,14 +709,11 @@ mod imp {
|
|||
)
|
||||
})
|
||||
.enumerate()
|
||||
.cycle()
|
||||
.take(3)
|
||||
{
|
||||
css.push_str(&format!("--background-color-{i}: {color}; "));
|
||||
}
|
||||
for i in n_colors..3 {
|
||||
css.push_str(&format!(
|
||||
"--background-color-{i}: var(--window-bg-color); "
|
||||
));
|
||||
}
|
||||
css.push_str("}");
|
||||
|
||||
window.imp().css_provider.load_from_string(&css);
|
||||
|
|
Loading…
Reference in a new issue