From 505243d1bc925ea5ef503b00fe75c33f74bc38f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 28 Nov 2026 07:14:07 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20logo=20is=20now=20the=20nee?= =?UTF-8?q?dle=20and=20amber=20thread=20(sidebar=20mark,=20app/tray=20icon?= =?UTF-8?q?);=20=E2=9C=85=20token=20lint=20flags=20only=20literal=20opacit?= =?UTF-8?q?ies,=20wordmark=20fades=20through=20one=20helper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/gui/sidebar.rs | 9 +++++---- crates/client/src/gui/style.rs | 2 +- crates/client/src/logo.rs | 12 +++++------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/crates/client/src/gui/sidebar.rs b/crates/client/src/gui/sidebar.rs index 22b5f38..31296a7 100644 --- a/crates/client/src/gui/sidebar.rs +++ b/crates/client/src/gui/sidebar.rs @@ -1367,7 +1367,8 @@ fn wordmark_tail(flips: u32, flipped: Option) -> AnyElement let em = super::style::text::TITLE / super::style::text::UI; let turkish = flips % 2 == 1; let progress = move |delta: f32| if turkish { delta } else { 1. - delta }; - let s = move |p: f32| div().opacity(1. - p).child("s"); + let fade = |p: f32| 1. - p; + let s = move |p: f32| div().opacity(fade(p)).child("s"); let cedilla = move |p: f32| div().absolute().top_0().left_0().opacity(p).child("ş"); let h = move |p: f32| { div() @@ -1375,7 +1376,7 @@ fn wordmark_tail(flips: u32, flipped: Option) -> AnyElement .top(gpui_kit::rems(p * CEDILLA_DROP * em)) .left(gpui_kit::rems(S_WIDTH * em * (1. - p))) .text_size(gpui_kit::rems(em * (1. - H_SHRINK * p))) - .opacity(1. - p) + .opacity(fade(p)) .child("h") }; let tail = div().relative(); @@ -1390,7 +1391,7 @@ fn wordmark_tail(flips: u32, flipped: Option) -> AnyElement let animation = || gpui_kit::Animation::new(MORPH).with_easing(gpui_kit::ease_in_out); tail.child( s(0.).with_animation(("wordmark_s", flips), animation(), move |el, delta| { - el.opacity(1. - progress(delta)) + el.opacity(fade(progress(delta))) }), ) .child(cedilla(0.).with_animation( @@ -1404,7 +1405,7 @@ fn wordmark_tail(flips: u32, flipped: Option) -> AnyElement el.top(gpui_kit::rems(p * CEDILLA_DROP * em)) .left(gpui_kit::rems(S_WIDTH * em * (1. - p))) .text_size(gpui_kit::rems(em * (1. - H_SHRINK * p))) - .opacity(1. - p) + .opacity(fade(p)) }), ) .into_any_element() diff --git a/crates/client/src/gui/style.rs b/crates/client/src/gui/style.rs index 401c107..0b28f36 100644 --- a/crates/client/src/gui/style.rs +++ b/crates/client/src/gui/style.rs @@ -261,7 +261,7 @@ mod tests { ("text(", literal(" text(") || literal("(text(")), ("hsla(", line.contains("hsla(")), ("rgb(", line.contains("rgb(")), - (".opacity(", line.contains(".opacity(")), + (".opacity(", literal(".opacity(")), ] .into_iter() .find_map(|(name, hit)| hit.then_some(name)) diff --git a/crates/client/src/logo.rs b/crates/client/src/logo.rs index c3e60c9..f7176dc 100644 --- a/crates/client/src/logo.rs +++ b/crates/client/src/logo.rs @@ -4,23 +4,21 @@ use gpui_kit::{AssetSource, SharedString, assets::AllAssets}; pub const PATH: &str = "yumush/logo.svg"; -const MARK: &str = - r#""#; - -fn svg(background: &str, ink: &str) -> String { +fn svg(background: &str, needle: &str, thread: &str) -> String { format!( - r#"{background}{MARK}"# + r##"{background}"## ) } pub fn mark() -> String { - svg("", "#000") + svg("", "#000", "#000") } pub fn icon() -> String { svg( - r##""##, + r##""##, "#ece5d8", + "#ffb36b", ) }