From 07c21bb8eea4c7c8192acc098dac86990521e689 Mon Sep 17 00:00:00 2001
From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Date: Tue, 13 Aug 2024 17:31:23 -0300
Subject: [PATCH] assistant: Change the quote selection crease icon (#16180)
Felt like this icon was more fitting to the idea of selected text, and looked less like a document.
Release Notes:
- N/A
---
assets/icons/text_select.svg | 1 +
crates/assistant/src/assistant_panel.rs | 2 +-
crates/ui/src/components/icon.rs | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
create mode 100644 assets/icons/text_select.svg
diff --git a/assets/icons/text_select.svg b/assets/icons/text_select.svg
new file mode 100644
index 0000000000..255635de6a
--- /dev/null
+++ b/assets/icons/text_select.svg
@@ -0,0 +1 @@
+
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs
index 6068963064..2ab0287a6d 100644
--- a/crates/assistant/src/assistant_panel.rs
+++ b/crates/assistant/src/assistant_panel.rs
@@ -4470,7 +4470,7 @@ fn quote_selection_fold_placeholder(title: String, editor: WeakView) ->
ButtonLike::new(fold_id)
.style(ButtonStyle::Filled)
.layer(ElevationIndex::ElevatedSurface)
- .child(Icon::new(IconName::FileText))
+ .child(Icon::new(IconName::TextSelect))
.child(Label::new(title.clone()).single_line())
.on_click(move |_, cx| {
editor
diff --git a/crates/ui/src/components/icon.rs b/crates/ui/src/components/icon.rs
index 9091b7b00b..b0062f5d67 100644
--- a/crates/ui/src/components/icon.rs
+++ b/crates/ui/src/components/icon.rs
@@ -254,6 +254,7 @@ pub enum IconName {
Tab,
Terminal,
TextCursor,
+ TextSelect,
Trash,
TriangleRight,
Undo,
@@ -417,6 +418,7 @@ impl IconName {
IconName::Tab => "icons/tab.svg",
IconName::Terminal => "icons/terminal.svg",
IconName::TextCursor => "icons/text-cursor.svg",
+ IconName::TextSelect => "icons/text_select.svg",
IconName::Trash => "icons/trash.svg",
IconName::TriangleRight => "icons/triangle_right.svg",
IconName::Update => "icons/update.svg",