Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(gpui): refresh editor action icons

Richie McIlroy6c579a1c1ba5
diff --git a/apps/desktop-gpui/assets/icons/arrow-left-to-line.svg b/apps/desktop-gpui/assets/icons/arrow-left-to-line.svg
new file mode 100644
index 000000000..acacb0348
--- /dev/null
+++ b/apps/desktop-gpui/assets/icons/arrow-left-to-line.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 19V5m10 1l-6 6l6 6m-6-6h14"/></svg>
diff --git a/apps/desktop-gpui/assets/icons/arrow-right-to-line.svg b/apps/desktop-gpui/assets/icons/arrow-right-to-line.svg
new file mode 100644
index 000000000..5f334654e
--- /dev/null
+++ b/apps/desktop-gpui/assets/icons/arrow-right-to-line.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 12H3m8 6l6-6l-6-6m10-1v14"/></svg>
diff --git a/apps/desktop-gpui/assets/icons/diamond.svg b/apps/desktop-gpui/assets/icons/diamond.svg
deleted file mode 100644
index e5ac92404..000000000
--- a/apps/desktop-gpui/assets/icons/diamond.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3L21 12L12 21L3 12Z"/></svg>
diff --git a/apps/desktop-gpui/assets/icons/gem.svg b/apps/desktop-gpui/assets/icons/gem.svg
new file mode 100644
index 000000000..a69fafa65
--- /dev/null
+++ b/apps/desktop-gpui/assets/icons/gem.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 3h12l4 6-10 13L2 9Z"/><path d="M11 3 8 9l4 13 4-13-3-6"/><path d="M2 9h20"/></svg>
diff --git a/apps/desktop-gpui/assets/icons/italic.svg b/apps/desktop-gpui/assets/icons/italic.svg
deleted file mode 100644
index 21b1ab754..000000000
--- a/apps/desktop-gpui/assets/icons/italic.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" x2="10" y1="4" y2="4"/><line x1="14" x2="5" y1="20" y2="20"/><line x1="15" x2="9" y1="4" y2="20"/></svg>
\ No newline at end of file
diff --git a/apps/desktop-gpui/assets/icons/mouse-pointer-ban.svg b/apps/desktop-gpui/assets/icons/mouse-pointer-ban.svg
new file mode 100644
index 000000000..d3e6a7126
--- /dev/null
+++ b/apps/desktop-gpui/assets/icons/mouse-pointer-ban.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2.034 2.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.944L8.204 7.545a1 1 0 0 0-.66.66l-1.066 3.443a.5.5 0 0 1-.944.033z"/><circle cx="16" cy="16" r="6"/><path d="m11.8 11.8l8.4 8.4"/></g></svg>
diff --git a/apps/desktop-gpui/src/assets.rs b/apps/desktop-gpui/src/assets.rs
index 9b592ca7e..65eabb375 100644
--- a/apps/desktop-gpui/src/assets.rs
+++ b/apps/desktop-gpui/src/assets.rs
@@ -83,7 +83,6 @@ const ICONS: &[(&str, &[u8])] = assets!("icons":
"shadow.svg",
"bg-blur.svg",
"laptop.svg",
- "wind.svg",
"shuffle.svg",
"gift.svg",
"history.svg",
@@ -112,7 +111,6 @@ const ICONS: &[(&str, &[u8])] = assets!("icons":
// originals: type, box-select (an alias of square-dashed since Lucide
// 0.5xx), music, video, rotate-3d, clock, monitor, columns-2, panel-right.
"box-select.svg",
- "clock.svg",
"columns-2.svg",
"monitor-outline.svg",
"music.svg",
@@ -162,20 +160,18 @@ const ICONS: &[(&str, &[u8])] = assets!("icons":
"arrow-left-right.svg",
"download.svg",
"flip-vertical-2.svg",
- "italic.svg",
"maximize.svg",
"mouse-pointer-2.svg",
+ "mouse-pointer-ban.svg",
"move.svg",
"move-right.svg",
"palette.svg",
"ratio.svg",
"refresh-cw.svg",
"rotate-ccw.svg",
- "rotate-cw.svg",
- "timer.svg",
"volume-x.svg",
- "diamond.svg",
- "x-mark.svg",
+ "gem.svg",
+ "sliders-horizontal.svg",
"zap.svg",
"zoom-in.svg",
"zoom-out.svg",
@@ -211,6 +207,8 @@ const ICONS: &[(&str, &[u8])] = assets!("icons":
"grip-vertical.svg",
"chevron-up.svg",
"arrow-left.svg",
+ "arrow-left-to-line.svg",
+ "arrow-right-to-line.svg",
"film.svg",
"folder-open.svg",
"folder-down.svg",
@@ -332,6 +330,8 @@ mod tests {
// annotation module names the tool and layer glyphs.
include_str!("screenshot_editor.rs"),
include_str!("screenshot_annotations.rs"),
+ // The crop overlay's own ratio glyph.
+ include_str!("screenshot_crop.rs"),
// `ui::SelectionHeader` names the check and the trash itself.
include_str!("ui/selection_header.rs"),
include_str!("ui/radio_cards.rs"),