Allow modals to override their dismissal (#3565)

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2023-12-08 16:28:16 -05:00 committed by GitHub
commit 1fecd3c327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 115 additions and 58 deletions

View file

@ -11,7 +11,7 @@ use std::sync::Arc;
use theme::{Theme, ThemeMeta, ThemeRegistry, ThemeSettings};
use ui::{prelude::*, v_stack, ListItem};
use util::ResultExt;
use workspace::{ui::HighlightedLabel, Workspace};
use workspace::{ui::HighlightedLabel, ModalView, Workspace};
actions!(Toggle, Reload);
@ -52,6 +52,8 @@ pub fn reload(cx: &mut AppContext) {
}
}
impl ModalView for ThemeSelector {}
pub struct ThemeSelector {
picker: View<Picker<ThemeSelectorDelegate>>,
}