Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T02:56:09.661Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

icon_theme_schema.rs

51 lines · 1.5 KB · rust
1#![allow(missing_docs)]
2
3use gpui::SharedString;
4use schemars::JsonSchema;
5use serde::{Deserialize, Serialize};
6use std::collections::HashMap;
7
8use crate::AppearanceContent;
9
10#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
11pub struct IconThemeFamilyContent {
12    pub name: String,
13    pub author: String,
14    pub themes: Vec<IconThemeContent>,
15}
16
17#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
18pub struct IconThemeContent {
19    pub name: String,
20    pub appearance: AppearanceContent,
21    #[serde(default)]
22    pub directory_icons: DirectoryIconsContent,
23    #[serde(default)]
24    pub named_directory_icons: HashMap<String, DirectoryIconsContent>,
25    #[serde(default)]
26    pub chevron_icons: ChevronIconsContent,
27    #[serde(default)]
28    pub file_stems: HashMap<String, String>,
29    #[serde(default)]
30    pub file_suffixes: HashMap<String, String>,
31    #[serde(default)]
32    pub file_icons: HashMap<String, IconDefinitionContent>,
33}
34
35#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonSchema)]
36pub struct DirectoryIconsContent {
37    pub collapsed: Option<SharedString>,
38    pub expanded: Option<SharedString>,
39}
40
41#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonSchema)]
42pub struct ChevronIconsContent {
43    pub collapsed: Option<SharedString>,
44    pub expanded: Option<SharedString>,
45}
46
47#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
48pub struct IconDefinitionContent {
49    pub path: SharedString,
50}
51
Served at tenant.openagents/omega Member data and write actions are omitted.