mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 23:48:11 +08:00
Desktop: Mac native menu bar (#3301)
* macos native menu bar * fix nix build * Add shortcut symbols to menu * fix fmt * fix vendoring * cleanup intercept frontend message * accept into editor message in queue function
This commit is contained in:
@@ -304,16 +304,13 @@ impl fmt::Display for Key {
|
||||
|
||||
impl From<Key> for LayoutKey {
|
||||
fn from(key: Key) -> Self {
|
||||
Self {
|
||||
key: format!("{key:?}"),
|
||||
label: key.to_string(),
|
||||
}
|
||||
Self { key, label: key.to_string() }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize, specta::Type)]
|
||||
struct LayoutKey {
|
||||
key: String,
|
||||
pub struct LayoutKey {
|
||||
pub key: Key,
|
||||
label: String,
|
||||
}
|
||||
|
||||
@@ -359,7 +356,7 @@ impl From<KeysGroup> for String {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize, specta::Type)]
|
||||
pub struct LayoutKeysGroup(Vec<LayoutKey>);
|
||||
pub struct LayoutKeysGroup(pub Vec<LayoutKey>);
|
||||
|
||||
impl From<KeysGroup> for LayoutKeysGroup {
|
||||
fn from(keys_group: KeysGroup) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user