Fix some paper cuts

This commit is contained in:
Keavon Chambers
2022-12-22 23:53:36 -08:00
parent d9101533f2
commit 748c0ff7c0
7 changed files with 17 additions and 12 deletions

View File

@@ -1032,7 +1032,7 @@ impl DocumentMessageHandler {
document.name = name;
Ok(document)
}
Err(DocumentError::InvalidFile(msg)) => Err(EditorError::Document(msg)),
Err(DocumentError::InvalidFile(msg)) => Err(EditorError::DocumentDeserialization(msg)),
_ => Err(EditorError::Document(String::from("Failed to open file"))),
}
}
@@ -1508,7 +1508,7 @@ impl DocumentMessageHandler {
})),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Snapping".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
WidgetHolder::new(Widget::Separator(Separator {
@@ -1524,7 +1524,7 @@ impl DocumentMessageHandler {
})),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Grid".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
WidgetHolder::new(Widget::Separator(Separator {
@@ -1540,7 +1540,7 @@ impl DocumentMessageHandler {
})),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Overlays".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
WidgetHolder::new(Widget::Separator(Separator {
@@ -1576,7 +1576,7 @@ impl DocumentMessageHandler {
})),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "View Mode".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
WidgetHolder::new(Widget::Separator(Separator {

View File

@@ -59,7 +59,7 @@ pub fn register_artboard_layer_properties(layer: &Layer, responses: &mut VecDequ
WidgetHolder::related_separator(),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Options Bar".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
],
@@ -261,7 +261,7 @@ pub fn register_artwork_layer_properties(
WidgetHolder::related_separator(),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Options Bar".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
],

View File

@@ -18,6 +18,9 @@ pub enum EditorError {
#[error("The operation caused a document error:\n{0:?}")]
Document(String),
#[error("This document was created in an older version of the editor.\n\nBackwards compatibility is, regrettably, not present in the current alpha release.\n\nTechnical details:\n{0:?}")]
DocumentDeserialization(String),
#[error("A rollback was initiated but no transaction was in progress")]
NoTransactionInProgress,

View File

@@ -173,7 +173,7 @@ impl PropertyHolder for SelectTool {
})),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Align".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
WidgetHolder::new(Widget::Separator(Separator {
@@ -200,7 +200,7 @@ impl PropertyHolder for SelectTool {
})),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Flip".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
WidgetHolder::new(Widget::Separator(Separator {
@@ -248,7 +248,7 @@ impl PropertyHolder for SelectTool {
})),
WidgetHolder::new(Widget::PopoverButton(PopoverButton {
header: "Boolean".into(),
text: "The contents of this popover menu are coming soon".into(),
text: "Coming soon".into(),
..Default::default()
})),
WidgetHolder::new(Widget::Separator(Separator {