mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 08:28:11 +08:00
Replace text-only tooltips with custom richly styled tooltips (#3436)
* Replace the title attribute with custom FloatingMenu tooltips * Separate tooltip labels and descriptions into two styled blocks * Move keyboard shortcut tooltips to a separate section at the bottom * Update shortcut key styling in tooltips and hints bar * Fix .to_string()
This commit is contained in:
@@ -19,9 +19,9 @@ impl std::fmt::Display for SelectionMode {
|
||||
impl SelectionMode {
|
||||
pub fn tooltip_description(&self) -> &'static str {
|
||||
match self {
|
||||
SelectionMode::Touched => "Select all layers at least partially covered by the dragged selection area",
|
||||
SelectionMode::Enclosed => "Select only layers fully enclosed by the dragged selection area",
|
||||
SelectionMode::Directional => r#""Touched" for leftward drags, "Enclosed" for rightward drags"#,
|
||||
SelectionMode::Touched => "Select all layers at least partially covered by the dragged selection area.",
|
||||
SelectionMode::Enclosed => "Select only layers fully enclosed by the dragged selection area.",
|
||||
SelectionMode::Directional => r#""Touched" for leftward drags, "Enclosed" for rightward drags."#,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user