mirror of
https://github.com/danbulant/cushy
synced 2026-07-08 12:40:36 +00:00
don't deadlock
This commit is contained in:
parent
a5dfd06f90
commit
af835b7474
1 changed files with 3 additions and 2 deletions
|
|
@ -47,8 +47,9 @@ macro_rules! define_components {
|
||||||
};
|
};
|
||||||
($type:ty, contrasting!($bg:ident, $($fg:ident),+ $(,)?)) => {
|
($type:ty, contrasting!($bg:ident, $($fg:ident),+ $(,)?)) => {
|
||||||
define_components!($type, |context| {
|
define_components!($type, |context| {
|
||||||
context.query_style(&$bg).most_contrasting(&[
|
let styles = context.query_styles(&[&$bg, $(&$fg),*]);
|
||||||
$(context.query_style(&$fg)),+
|
styles.get(&$bg, context).most_contrasting(&[
|
||||||
|
$(styles.get(&$fg, context)),+
|
||||||
])
|
])
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue