mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix missing artboard layer icon
This commit is contained in:
@@ -2714,6 +2714,7 @@ impl NodeGraphMessageHandler {
|
||||
let clippable = layer.can_be_clipped(network_interface.document_metadata());
|
||||
let data = LayerPanelEntry {
|
||||
id: node_id,
|
||||
reference: network_interface.reference(&node_id, &[]).and_then(|x| x.as_ref()).cloned().unwrap_or_default(),
|
||||
alias: network_interface.display_name(&node_id, &[]),
|
||||
in_selected_network: selection_network_path.is_empty(),
|
||||
children_allowed,
|
||||
|
||||
@@ -34,6 +34,7 @@ impl serde::Serialize for JsRawBuffer {
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq, specta::Type)]
|
||||
pub struct LayerPanelEntry {
|
||||
pub id: NodeId,
|
||||
pub reference: String,
|
||||
pub alias: String,
|
||||
#[serde(rename = "inSelectedNetwork")]
|
||||
pub in_selected_network: bool,
|
||||
|
||||
@@ -134,12 +134,12 @@ impl DocumentToolData {
|
||||
LayoutGroup::Row {
|
||||
widgets: vec![
|
||||
IconButton::new("SwapVertical", 16)
|
||||
.tooltip_label("Swap")
|
||||
.tooltip_label("Swap Working Colors")
|
||||
.tooltip_shortcut(action_shortcut!(ToolMessageDiscriminant::SwapColors))
|
||||
.on_update(|_| ToolMessage::SwapColors.into())
|
||||
.widget_instance(),
|
||||
IconButton::new("WorkingColors", 16)
|
||||
.tooltip_label("Reset")
|
||||
.tooltip_label("Reset Working Colors")
|
||||
.tooltip_shortcut(action_shortcut!(ToolMessageDiscriminant::ResetColors))
|
||||
.on_update(|_| ToolMessage::ResetColors.into())
|
||||
.widget_instance(),
|
||||
|
||||
Reference in New Issue
Block a user