Add tray / menu bar app for MacOS and Windows

This commit is contained in:
Lennard Kittner
2026-03-19 14:31:34 +01:00
parent 6c4e99ac90
commit 7ac034d33b
5 changed files with 2580 additions and 48 deletions

View File

@@ -158,7 +158,7 @@ pub struct DeviceState {
pub device_properties: DeviceProperties,
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct DeviceProperties {
pub product_id: u16,
pub vendor_id: u16,
@@ -376,7 +376,7 @@ pub struct PropertyDescriptor<T: 'static> {
pub data: Option<T>,
pub suffix: &'static str,
pub property_type: PropertyType,
pub create_event: &'static dyn Fn(T) -> Option<DeviceEvent>,
pub create_event: &'static (dyn Fn(T) -> Option<DeviceEvent> + Send + Sync),
}
impl<T: Debug> Debug for PropertyDescriptor<T> {
@@ -675,7 +675,7 @@ pub enum DeviceEvent {
NoiseGateActive(bool),
}
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum Color {
BlackBlack,
WhiteWhite,