mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 17:08:11 +08:00
Menu bar definition in backend (#681)
* initial menu layout working * removed api.rs functions * no action shortcut for no-op * code review * nitpicks
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use super::widgets::WidgetLayout;
|
||||
use super::widgets::Layout;
|
||||
use crate::message_prelude::*;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
|
||||
#[impl_message(Message, Layout)]
|
||||
#[derive(PartialEq, Clone, Deserialize, Serialize, Debug)]
|
||||
pub enum LayoutMessage {
|
||||
SendLayout { layout: WidgetLayout, layout_target: LayoutTarget },
|
||||
SendLayout { layout: Layout, layout_target: LayoutTarget },
|
||||
UpdateLayout { layout_target: LayoutTarget, widget_id: u64, value: serde_json::Value },
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ pub enum LayoutTarget {
|
||||
DocumentBar,
|
||||
DocumentMode,
|
||||
LayerTreeOptions,
|
||||
MenuBar,
|
||||
PropertiesOptions,
|
||||
PropertiesSections,
|
||||
ToolOptions,
|
||||
|
||||
Reference in New Issue
Block a user