rodecaster_protocol/names/theme.rs
1//! [`ThemeParam`]: the singleton `THEME`-node parameter family.
2
3// The one property the THEME node carries (confirmed from capture, firmware
4// 1.7.3): the currently-selected UI theme identifier. Value is an Int
5// selecting one of the device's built-in themes.
6wire_param_enum! {
7 /// A device-wide UI theme parameter: the one flat property the device
8 /// carries on the singleton `THEME` node. Selects the current
9 /// touchscreen theme (dark / light / etc: enum values are
10 /// firmware-internal).
11 ThemeParam {
12 Id => "themeId",
13 }
14}
15
16#[cfg(test)]
17mod tests {
18 use super::*;
19
20 #[test]
21 fn theme_param_name_round_trips() {
22 assert_eq!(ThemeParam::from_name("themeId"), ThemeParam::Id);
23 assert!(ThemeParam::Id.is_known());
24 }
25}