Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

History: feature folders get their own symbol (#8521) (#8522)

JK3D9b7a6ea04d81
diff --git a/assets/icons/ui/design/requested_icons.txt b/assets/icons/ui/design/requested_icons.txt
index ed748590e5..baf4a20e2b 100644
--- a/assets/icons/ui/design/requested_icons.txt
+++ b/assets/icons/ui/design/requested_icons.txt
@@ -103,6 +103,7 @@ extend false
extrude false
eye false
fastener false
+feature_group false
fillet false
finish false
finish_edit false
diff --git a/assets/icons/ui/design/svg/model/feature_group.svg b/assets/icons/ui/design/svg/model/feature_group.svg
new file mode 100644
index 0000000000..a9618f7204
--- /dev/null
+++ b/assets/icons/ui/design/svg/model/feature_group.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+ <title>Feature group</title>
+ <path d="M28.5 11L50.5 11A4.5 4.5 0 0 1 55 15.5L55 28.5A4.5 4.5 0 0 1 50.5 33L28.5 33A4.5 4.5 0 0 1 24 28.5L24 15.5A4.5 4.5 0 0 1 28.5 11Z" fill="#8e9faf" stroke="#34465b" stroke-width="2.55" stroke-linejoin="round" stroke-linecap="round"/>
+ <path d="M21 20L43 20A4.5 4.5 0 0 1 47.5 24.5L47.5 37.5A4.5 4.5 0 0 1 43 42L21 42A4.5 4.5 0 0 1 16.5 37.5L16.5 24.5A4.5 4.5 0 0 1 21 20Z" fill="#b8c3cf" stroke="#34465b" stroke-width="2.55" stroke-linejoin="round" stroke-linecap="round"/>
+ <path d="M13.5 29L35.5 29A4.5 4.5 0 0 1 40 33.5L40 46.5A4.5 4.5 0 0 1 35.5 51L13.5 51A4.5 4.5 0 0 1 9 46.5L9 33.5A4.5 4.5 0 0 1 13.5 29Z" fill="#b9ddf8" stroke="#34465b" stroke-width="2.55" stroke-linejoin="round" stroke-linecap="round"/>
+ <path d="M16 40L33 40" fill="none" stroke="#236ead" stroke-width="4.25" stroke-linejoin="round" stroke-linecap="round"/>
+</svg>
diff --git a/attribution/pending/feature-group-icon.md b/attribution/pending/feature-group-icon.md
new file mode 100644
index 0000000000..d2c31147ae
--- /dev/null
+++ b/attribution/pending/feature-group-icon.md
@@ -0,0 +1 @@
+| assets/icons/ui/design/svg/model/feature_group.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 |
diff --git a/crates/ui-egui/src/timeline_left.rs b/crates/ui-egui/src/timeline_left.rs
index fca0c73d0c..b045efdf22 100644
--- a/crates/ui-egui/src/timeline_left.rs
+++ b/crates/ui-egui/src/timeline_left.rs
@@ -669,7 +669,7 @@ fn selection_actions(app: &mut SolveApp, ui: &mut egui::Ui, groups: &[solidcraft
let selected_groups = app.tree.picked_timeline_groups.clone();
let has_selection = !features.is_empty() || !selected_groups.is_empty();
if has_selection {
- if crate::context_menu::button(ui, "Add to New Folder", "folder").clicked() {
+ if crate::context_menu::button(ui, "Add to New Folder", "feature_group").clicked() {
let result = app.run("timeline.group", json!({"features": features, "groups": selected_groups}));
if let Ok(result) = result
&& let Some(group) = result.get("group").and_then(serde_json::Value::as_u64)
@@ -680,7 +680,7 @@ fn selection_actions(app: &mut SolveApp, ui: &mut egui::Ui, groups: &[solidcraft
ui.close();
}
let grouped = features.iter().any(|feature| group_for(groups, *feature).is_some()) || !selected_groups.is_empty();
- if grouped && crate::context_menu::button(ui, "Remove from Folder", "folder").clicked() {
+ if grouped && crate::context_menu::button(ui, "Remove from Folder", "feature_group").clicked() {
let mut params = json!({"group": null});
if !features.is_empty() {
params["features"] = json!(features);
@@ -1017,7 +1017,7 @@ fn vertical_group_row(
painter.multiply_opacity(0.42);
}
let icon = Rect::from_center_size(pos2(rect.left() + 27.5 + offset, rect.center().y), vec2(17.0, 17.0));
- icons::paint_icon(&painter, icon, "folder", f32::from(t.icon.a()) / 255.0);
+ icons::paint_icon(&painter, icon, "feature_group", f32::from(t.icon.a()) / 255.0);
if suppressed {
painter.line_segment([icon.left_bottom(), icon.right_top()], Stroke::new(1.5, t.text_dim));
}