Clean up and polish some code from the previous commit (#255)

This commit is contained in:
Keavon Chambers
2021-07-13 00:52:45 -07:00
committed by GitHub
parent 39e6893630
commit 7ae91e8330
9 changed files with 88 additions and 79 deletions
@@ -20,7 +20,7 @@ pub enum FrontendMessage {
DisableTextInput,
UpdateWorkingColors { primary: Color, secondary: Color },
PromptCloseConfirmationModal,
SetZoom { new_zoom: f64 },
SetCanvasZoom { new_zoom: f64 },
SetRotation { new_radians: f64 },
}
@@ -48,7 +48,7 @@ impl MessageHandler<FrontendMessage, ()> for FrontendMessageHandler {
UpdateCanvas,
EnableTextInput,
DisableTextInput,
SetZoom,
SetCanvasZoom,
SetRotation,
);
}