commit
This commit is contained in:
parent
1ced4381b8
commit
f44283160a
10 changed files with 181 additions and 138 deletions
|
@ -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> },
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue