mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Refactor typeregister's BUILTIN_ENUMS => BUILTIN.enums
This will allow us to add more buildin types to this thread local in follow-up patches, to reduce the number of thread local slots.
This commit is contained in:
parent
00dec34d34
commit
6e9e66ea7d
9 changed files with 29 additions and 19 deletions
|
@ -259,7 +259,7 @@ impl BuiltinFunction {
|
|||
}),
|
||||
BuiltinFunction::ColorScheme => interned_type!(Function {
|
||||
return_type: Type::Enumeration(
|
||||
crate::typeregister::BUILTIN_ENUMS.with(|e| e.ColorScheme.clone()),
|
||||
crate::typeregister::BUILTIN.with(|e| e.enums.ColorScheme.clone()),
|
||||
),
|
||||
args: vec![],
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue