Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_ui: Apply accented color to links in Blame tooltip (#40124)
Bartosz Kaszubowskiab70555a8a29
diff --git a/crates/git_ui/src/blame_ui.rs b/crates/git_ui/src/blame_ui.rsindex 469392ee1d8..31726dc0b33 100644--- a/crates/git_ui/src/blame_ui.rs+++ b/crates/git_ui/src/blame_ui.rs@@ -8,8 +8,8 @@ use git::{repository::CommitSummary,};use gpui::{- ClipboardItem, Entity, Hsla, MouseButton, ScrollHandle, Subscription, TextStyle, WeakEntity,- prelude::*,+ ClipboardItem, Entity, Hsla, MouseButton, ScrollHandle, Subscription, TextStyle,+ TextStyleRefinement, UnderlineStyle, WeakEntity, prelude::*,};use markdown::{Markdown, MarkdownElement};use project::{git_store::Repository, project_settings::ProjectSettings};@@ -208,11 +208,21 @@ impl BlameRenderer for GitBlameRenderer {OffsetDateTime::now_utc(),time_format::TimestampFormat::MediumAbsolute,);+ let link_color = cx.theme().colors().text_accent;let markdown_style = {let mut style = hover_markdown_style(window, cx);if let Some(code_block) = &style.code_block.text {style.base_text_style.refine(code_block);}+ style.link.refine(&TextStyleRefinement {+ color: Some(link_color),+ underline: Some(UnderlineStyle {+ color: Some(link_color.opacity(0.4)),+ thickness: px(1.0),+ ..Default::default()+ }),+ ..Default::default()+ });style};