From 28d1d2d939707301d6a5261612f404ebed691d19 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 2 Jan 2025 02:09:33 -0300 Subject: [PATCH] assistant2: Add link styles for thread messages (#22560) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Screenshot 2025-01-02 at 1 52 30 AM Release Notes: - N/A --- crates/assistant2/src/active_thread.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/assistant2/src/active_thread.rs b/crates/assistant2/src/active_thread.rs index 9c5dc6a8a177d9ebca14020b6d490783d9c83ff5..4b49adb3293f6906f27d77a670faf393f42866c8 100644 --- a/crates/assistant2/src/active_thread.rs +++ b/crates/assistant2/src/active_thread.rs @@ -5,7 +5,7 @@ use collections::HashMap; use gpui::{ list, AbsoluteLength, AnyElement, AppContext, DefiniteLength, EdgesRefinement, Empty, Length, ListAlignment, ListOffset, ListState, Model, StyleRefinement, Subscription, - TextStyleRefinement, View, WeakView, + TextStyleRefinement, UnderlineStyle, View, WeakView, }; use language::LanguageRegistry; use language_model::Role; @@ -140,6 +140,15 @@ impl ActiveThread { background_color: Some(colors.editor_foreground.opacity(0.01)), ..Default::default() }, + link: TextStyleRefinement { + background_color: Some(colors.editor_foreground.opacity(0.025)), + underline: Some(UnderlineStyle { + color: Some(colors.text_accent.opacity(0.5)), + thickness: px(1.), + ..Default::default() + }), + ..Default::default() + }, ..Default::default() };