This commit is contained in:
Moritz Ruth 2024-03-01 01:19:28 +01:00
parent 1ced4381b8
commit f44283160a
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
10 changed files with 181 additions and 138 deletions

View file

@ -50,7 +50,6 @@ pub enum HandlerEvent {
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
#[serde(tag = "command", rename_all = "kebab-case")]
pub enum HandlerCommand {
SetActivePages { key_page_id: String, knob_page_id: String },
SetKeyStyle { path: KeyPath, value: Option<KeyStyle> },
SetKnobStyle { path: KnobPath, value: Option<KnobStyle> },
SetKnobValue { path: KnobPath, value: Option<f32> },

View file

@ -6,6 +6,7 @@ use crate::style::{KeyStyle, KnobStyle};
#[derive(Debug)]
pub struct Key {
pub path: KeyPath,
pub host_id: Box<str>,
pub base_style: KeyStyle,
pub style: Option<KeyStyle>,
}
@ -13,6 +14,7 @@ pub struct Key {
#[derive(Debug)]
pub struct Knob {
pub path: KnobPath,
pub host_id: Box<str>,
pub base_style: KnobStyle,
pub style: Option<KnobStyle>,
pub value: Option<f32>,