title_bar: Remove dependency on theme_selector (#21009)

This PR removes the `title_bar` crate's dependency on the
`theme_selector`.

The `theme_selector::Toggle` action now resides at
`zed_actions::theme_selector::Toggle`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-11-21 14:33:58 -05:00 committed by GitHub
parent f62ccf9c8a
commit 6b2f1cc543
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 31 additions and 16 deletions

View file

@ -50,6 +50,19 @@ pub mod command_palette {
actions!(command_palette, [Toggle]);
}
pub mod theme_selector {
use gpui::impl_actions;
use serde::Deserialize;
#[derive(PartialEq, Clone, Default, Debug, Deserialize)]
pub struct Toggle {
/// A list of theme names to filter the theme selector down to.
pub themes_filter: Option<Vec<String>>,
}
impl_actions!(theme_selector, [Toggle]);
}
#[derive(Clone, Default, Deserialize, PartialEq)]
pub struct InlineAssist {
pub prompt: Option<String>,