ZIm/crates/storybook
Marshall Bowers 7656096814
Rework access to ThemeRegistry global (#7023)
This PR reworks how we access the `ThemeRegistry` global.

Previously we were making calls directly on the context, like
`cx.global::<ThemeRegistry>`. However, one problem with this is that it
spreads out the knowledge of exactly what type is stored in the global.

In order to make it easier to adjust the type we store in the context
(e.g., wrapping the `ThemeRegistry` in an `Arc`), we now call methods on
the `ThemeRegistry` itself for accessing the global.

It would also be interesting to see how we could prevent access to the
`ThemeRegistry` without going through one of these dedicated methods 🤔

Release Notes:

- N/A
2024-01-29 17:51:34 -05:00
..
docs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
src Rework access to ThemeRegistry global (#7023) 2024-01-29 17:51:34 -05:00
build.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
Cargo.lock Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
Cargo.toml Licenses: change license fields in Cargo.toml to AGPL-3.0-or-later. (#5535) 2024-01-27 13:51:16 +01:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00