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:
Marshall Bowers 2025-01-30 16:11:42 -05:00 committed by GitHub
parent e23e03592b
commit 7adf9cb1a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 330 additions and 6 deletions

View file

@ -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;