mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 13:48:12 +08:00
* Improve node graph performance * Fix wire bugs, add type default for properties. * Grid aligned wire paths * remove type source * node from exposed input * Refresh wires on preference change * merge fixes * Code review * Fix names * Code review * Fix wires on redo/undo --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
20 lines
645 B
Rust
20 lines
645 B
Rust
use crate::messages::portfolio::document::utility_types::wires::GraphWireStyle;
|
|
use crate::messages::preferences::SelectionMode;
|
|
use crate::messages::prelude::*;
|
|
|
|
#[impl_message(Message, Preferences)]
|
|
#[derive(PartialEq, Clone, Debug, serde::Serialize, serde::Deserialize)]
|
|
pub enum PreferencesMessage {
|
|
// Management messages
|
|
Load { preferences: String },
|
|
ResetToDefaults,
|
|
|
|
// Per-preference messages
|
|
UseVello { use_vello: bool },
|
|
SelectionMode { selection_mode: SelectionMode },
|
|
VectorMeshes { enabled: bool },
|
|
ModifyLayout { zoom_with_scroll: bool },
|
|
GraphWireStyle { style: GraphWireStyle },
|
|
ViewportZoomWheelRate { rate: f64 },
|
|
}
|