mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 03:18:06 +08:00
* Add a stroke width option to the Line Tool * Fix title case for line options * Add px unit to line stroke width * Add stroke width to pen tool * Rename stroke width to weight * Change number input width to min-width * Remove the word "stroke" from "stroke weight"
25 lines
563 B
Rust
25 lines
563 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, Hash)]
|
|
pub enum ToolOptions {
|
|
Select { append_mode: SelectAppendMode },
|
|
Ellipse,
|
|
Shape { shape_type: ShapeType },
|
|
Line { weight: u32 },
|
|
Pen { weight: u32 },
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, Hash)]
|
|
pub enum SelectAppendMode {
|
|
New,
|
|
Add,
|
|
Subtract,
|
|
Intersect,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, Hash)]
|
|
pub enum ShapeType {
|
|
Star { vertices: u32 },
|
|
Polygon { vertices: u32 },
|
|
}
|