Skip to main content

Mountain/IPC/WindServiceHandlers/UI/
ThemesList.rs

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