Marshall Bowers and Piotr Osiewicz
71c1e36d1e
Put Theme behind an Arc ( #3017 )
...
This PR puts the `Theme` returned from the `theme` function behind an
`Arc`.
### Motivation
While working on wiring up window focus events for the `TitleBar`
component we ran into issues where `theme` was holding an immutable
borrow to the `ViewContext` for the entirety of the `render` scope,
which prevented having mutable borrows in the same scope.
### Explanation
To avoid this, we can make `theme` return an `Arc<Theme>` to allow for
cheap clones and avoiding the issues with the borrow checker.
Release Notes:
- N/A
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com >
2023-09-22 13:35:30 -04:00
..
2023-09-15 12:50:49 -04:00
2023-09-22 09:33:59 -04:00
2023-09-21 22:44:56 -04:00
2023-08-21 11:07:31 +02:00
2023-09-15 12:50:49 -04:00
2023-08-29 16:37:48 -04:00
2023-09-08 16:24:37 -07:00
2023-09-20 16:40:29 -07:00
2023-09-15 15:25:35 -04:00
2023-08-31 16:23:06 -07:00
2023-09-20 17:39:21 -07:00
2023-09-20 16:40:29 -07:00
2023-09-11 17:50:09 +02:00
2023-08-23 16:30:27 -07:00
2023-08-15 03:06:43 -07:00
2023-09-20 12:08:32 +03:00
2023-09-15 12:50:49 -04:00
2023-09-15 12:50:49 -04:00
2023-09-20 16:40:29 -07:00
2023-09-22 17:04:11 +03:00
2023-08-25 17:00:53 -07:00
2023-09-15 12:50:49 -04:00
2023-09-08 16:25:20 -06:00
2023-09-19 16:13:47 -04:00
2023-09-19 16:13:47 -04:00
2023-08-08 11:08:37 -06:00
2023-09-22 13:35:30 -04:00
2023-09-18 20:25:12 -06:00
2023-09-18 20:47:40 -06:00
2023-09-11 09:00:59 -06:00
2023-08-18 17:40:08 -07:00
2023-09-19 12:32:05 +03:00
2023-09-08 12:41:32 -04:00
2023-09-22 13:40:20 +03:00
2023-09-09 14:01:53 -07:00
2023-09-22 13:40:20 +03:00
2023-08-08 14:06:29 -07:00
2023-09-06 11:18:55 -04:00
2023-08-15 03:25:45 -07:00
2023-09-21 16:27:58 +02:00
2023-09-19 17:56:22 -07:00
2023-08-07 22:46:48 -06:00
2023-09-21 21:54:59 -04:00
2023-08-10 10:26:48 -06:00
2023-09-07 22:24:02 -06:00
2023-08-24 12:45:21 +02:00
2023-09-15 17:57:23 -07:00
2023-09-21 14:18:58 -04:00
2023-09-22 09:46:06 -04:00
2023-08-25 17:00:53 -07:00
2023-09-22 13:35:30 -04:00
2023-08-24 11:31:41 -07:00
2023-09-14 14:35:17 -06:00
2023-09-15 21:33:22 -07:00
2023-09-20 08:25:21 -07:00
2023-09-15 15:25:35 -04:00
2023-08-25 17:00:53 -07:00
2023-09-22 13:35:30 -04:00
2023-09-19 16:13:47 -04:00
2023-08-25 10:11:32 -07:00
2023-09-20 12:01:04 -06:00
2023-08-10 10:26:48 -06:00
2023-09-19 17:56:22 -07:00
2023-09-21 22:44:56 -04:00