Add icon theme selector (#23976)
This PR adds an icon theme selector for switching between icon themes: https://github.com/user-attachments/assets/2cdc7ab7-d9f4-4968-a2e9-724e8ad4ef4d Release Notes: - N/A
This commit is contained in:
parent
e23e03592b
commit
7adf9cb1a0
4 changed files with 330 additions and 6 deletions
|
@ -77,6 +77,20 @@ pub mod theme_selector {
|
|||
impl_actions!(theme_selector, [Toggle]);
|
||||
}
|
||||
|
||||
pub mod icon_theme_selector {
|
||||
use gpui::impl_actions;
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema)]
|
||||
pub struct Toggle {
|
||||
/// A list of icon theme names to filter the theme selector down to.
|
||||
pub themes_filter: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl_actions!(icon_theme_selector, [Toggle]);
|
||||
}
|
||||
|
||||
pub mod assistant {
|
||||
use gpui::{actions, impl_actions};
|
||||
use schemars::JsonSchema;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue