Files
oak-gpui/crates
Marshall BowersandPiotr 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-22 09:33:59 -04:00
2023-09-20 16:40:29 -07:00
2023-09-15 15:25:35 -04:00
2023-09-20 17:39:21 -07:00
2023-09-20 16:40:29 -07:00
2023-08-15 03:06:43 -07:00
2023-09-22 17:04:11 +03:00
2023-09-08 16:25:20 -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-09-09 14:01:53 -07:00
2023-09-21 16:27:58 +02:00
WIP
2023-08-10 10:26:48 -06:00
2023-09-07 22:24:02 -06:00
2023-09-22 09:46:06 -04:00
2023-09-22 13:35:30 -04:00
2023-09-15 15:25:35 -04:00
2023-09-22 13:35:30 -04:00
2023-08-25 10:11:32 -07:00
2023-09-20 12:01:04 -06:00
WIP
2023-08-10 10:26:48 -06:00