Extract platform-dependant FontSystem

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-03-24 16:51:28 +01:00
co-authored by Nathan Sobo
parent e0e4cff815
commit 9178e91cc0
17 changed files with 453 additions and 399 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ mod tests {
#[test]
fn test_open_paths_action() {
App::test((), |mut app| async move {
let settings = settings::channel(&FontCache::new()).unwrap().1;
let settings = settings::channel(&app.font_cache()).unwrap().1;
init(&mut app);
+2 -2
View File
@@ -339,7 +339,7 @@ mod tests {
},
}));
let settings = settings::channel(&FontCache::new()).unwrap().1;
let settings = settings::channel(&app.font_cache()).unwrap().1;
let workspace = app.add_model(|ctx| Workspace::new(vec![dir.path().into()], ctx));
app.finish_pending_tasks().await; // Open and populate worktree.
let entries = workspace.file_entries(&app);
@@ -409,7 +409,7 @@ mod tests {
},
}));
let settings = settings::channel(&FontCache::new()).unwrap().1;
let settings = settings::channel(&app.font_cache()).unwrap().1;
let workspace = app.add_model(|ctx| Workspace::new(vec![dir.path().into()], ctx));
app.finish_pending_tasks().await; // Open and populate worktree.
let entries = workspace.file_entries(&app);