mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 14:58:05 +08:00
* Artboards can have properties * fix crash when renaming artboards * moved target document to utility types * moved import and added test for file version information * fixed missing import * fix error from merging * - typed properties message handler data - removed name from WidgetRow * clippy warnings * artboards have seperate properties section * - color input can be forced to have selection - crop tool shows on switch - select tool shows on switch * variable renamed * change to use PropType<boolean> instead of PropType<Boolean> * Add an artboard icon * Add the "Delete Artboard" hint * fix unselect glitch * even better * Remove the Transform properties group Co-authored-by: Keavon Chambers <keavon@keavon.com>
33 lines
840 B
Rust
33 lines
840 B
Rust
use crate::message_prelude::*;
|
|
|
|
use super::utility_types::TargetDocument;
|
|
|
|
use graphene::layers::style::{Fill, Stroke};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[remain::sorted]
|
|
#[impl_message(Message, DocumentMessage, PropertiesPanel)]
|
|
#[derive(PartialEq, Clone, Debug, Serialize, Deserialize)]
|
|
pub enum PropertiesPanelMessage {
|
|
CheckSelectedWasDeleted { path: Vec<LayerId> },
|
|
CheckSelectedWasUpdated { path: Vec<LayerId> },
|
|
ClearSelection,
|
|
ModifyFill { fill: Fill },
|
|
ModifyName { name: String },
|
|
ModifyStroke { stroke: Stroke },
|
|
ModifyTransform { value: f64, transform_op: TransformOp },
|
|
ResendActiveProperties,
|
|
SetActiveLayers { paths: Vec<Vec<LayerId>>, document: TargetDocument },
|
|
}
|
|
|
|
#[derive(PartialEq, Clone, Copy, Debug, Serialize, Deserialize)]
|
|
pub enum TransformOp {
|
|
X,
|
|
Y,
|
|
ScaleX,
|
|
ScaleY,
|
|
Width,
|
|
Height,
|
|
Rotation,
|
|
}
|