Skip to main content

Mountain/IPC/WindServiceHandlers/UI/
ThemesList.rs

1//! Wire method: `themes:list`.
2
3use std::sync::Arc;
4
5use serde_json::{Value, json};
6
7use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
8
9pub async fn Fn(_runtime:Arc<ApplicationRunTime>) -> Result<Value, String> {
10	let Themes = vec![
11		json!({ "id": "Default Dark Modern", "label": "Default Dark Modern", "kind": "dark" }),
12		json!({ "id": "Default Light Modern", "label": "Default Light Modern", "kind": "light" }),
13		json!({ "id": "Default Dark+", "label": "Default Dark+", "kind": "dark" }),
14		json!({ "id": "Default Light+", "label": "Default Light+", "kind": "light" }),
15		json!({ "id": "High Contrast", "label": "High Contrast", "kind": "highContrast" }),
16		json!({ "id": "High Contrast Light", "label": "High Contrast Light", "kind": "highContrastLight" }),
17	];
18
19	Ok(json!(Themes))
20}