mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 10:58:04 +08:00
Rename tools: "Sample" to "Eyedropper", "Blur/Sharpen" to "Detail" (#87)
This commit is contained in:
@@ -6,9 +6,9 @@ use document_core::Operation;
|
||||
use super::DocumentToolData;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Sample;
|
||||
pub struct Eyedropper;
|
||||
|
||||
impl Tool for Sample {
|
||||
impl Tool for Eyedropper {
|
||||
fn handle_input(&mut self, event: &Event, document: &Document, tool_data: &DocumentToolData) -> (Vec<Response>, Vec<Operation>) {
|
||||
todo!("{}::handle_input {:?} {:?} {:?}", module_path!(), event, document, tool_data)
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
mod crop;
|
||||
mod ellipse;
|
||||
mod eyedropper;
|
||||
mod line;
|
||||
mod navigate;
|
||||
mod path;
|
||||
mod pen;
|
||||
mod rectangle;
|
||||
mod sample;
|
||||
mod select;
|
||||
mod shape;
|
||||
|
||||
@@ -61,7 +61,7 @@ impl Default for ToolFsmState {
|
||||
Select => select::Select,
|
||||
Crop => crop::Crop,
|
||||
Navigate => navigate::Navigate,
|
||||
Sample => sample::Sample,
|
||||
Eyedropper => eyedropper::Eyedropper,
|
||||
Path => path::Path,
|
||||
Pen => pen::Pen,
|
||||
Line => line::Line,
|
||||
@@ -114,7 +114,7 @@ pub enum ToolType {
|
||||
Select,
|
||||
Crop,
|
||||
Navigate,
|
||||
Sample,
|
||||
Eyedropper,
|
||||
Text,
|
||||
Fill,
|
||||
Gradient,
|
||||
@@ -142,7 +142,7 @@ impl fmt::Display for ToolType {
|
||||
Select,
|
||||
Crop,
|
||||
Navigate,
|
||||
Sample,
|
||||
Eyedropper,
|
||||
Text,
|
||||
Fill,
|
||||
Gradient,
|
||||
|
||||
Reference in New Issue
Block a user