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", ) }