Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop-gpui): scan the Windows caption icons and drop three unused ones

Richie McIlroy1fb93e5d8f5f
diff --git a/apps/desktop-gpui/src/assets.rs b/apps/desktop-gpui/src/assets.rs
index 65eabb375..960d09f70 100644
--- a/apps/desktop-gpui/src/assets.rs
+++ b/apps/desktop-gpui/src/assets.rs
@@ -85,7 +85,6 @@ const ICONS: &[(&str, &[u8])] = assets!("icons":
"laptop.svg",
"shuffle.svg",
"gift.svg",
- "history.svg",
"hotkeys.svg",
"image.svg",
"info.svg",
@@ -99,7 +98,6 @@ const ICONS: &[(&str, &[u8])] = assets!("icons":
"message-square-plus.svg",
"mic-off.svg",
"microphone.svg",
- "minimize.svg",
"minus.svg",
"monitor.svg",
"more-vertical.svg",
@@ -189,7 +187,6 @@ const ICONS: &[(&str, &[u8])] = assets!("icons":
// The main window's hand-drawn traffic lights: the x and expand glyphs
// `CaptionControlsMacOS.tsx` inlines, shown while the group is hovered.
"traffic-close.svg",
- "traffic-zoom.svg",
// The remaining settings pages (`settings_pages.rs`). `circle-check` is
// Cap's own (`packages/ui-solid/icons/circle-check.svg`, hotkeys.tsx's
// IconCapCircleCheck); the rest are the Lucide 24x24 originals the pages'
@@ -335,6 +332,8 @@ mod tests {
// `ui::SelectionHeader` names the check and the trash itself.
include_str!("ui/selection_header.rs"),
include_str!("ui/radio_cards.rs"),
+ // The Windows caption buttons.
+ include_str!("ui/windows_caption.rs"),
// The onboarding window's welcome cards and permissions surface; the
// per-permission row glyphs are named on `OSPermission::icon`.
include_str!("onboarding_window.rs"),