mirror of
https://github.com/danbulant/cushy
synced 2026-05-24 12:28:23 +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),+ $(,)?)) => {
|
||||
define_components!($type, |context| {
|
||||
context.query_style(&$bg).most_contrasting(&[
|
||||
$(context.query_style(&$fg)),+
|
||||
let styles = context.query_styles(&[&$bg, $(&$fg),*]);
|
||||
styles.get(&$bg, context).most_contrasting(&[
|
||||
$(styles.get(&$fg, context)),+
|
||||
])
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue