From 802d7421bc1c5ed09f2a8ebeae353381d9e6fe6a Mon Sep 17 00:00:00 2001
From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Date: Fri, 24 Jan 2025 09:44:09 -0300
Subject: [PATCH] assistant: Adjust the ToS acceptance card design (#23599)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Just fine-tuning the copywriting and design here.
| Before | After |
|--------|--------|
|
|
|
Release Notes:
- N/A
---
crates/language_models/src/provider/cloud.rs | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/crates/language_models/src/provider/cloud.rs b/crates/language_models/src/provider/cloud.rs
index 4621236785a4394895a9bd54710d169e11297db8..adb7960d9f2ab2913dc3f718525026e17905fcba 100644
--- a/crates/language_models/src/provider/cloud.rs
+++ b/crates/language_models/src/provider/cloud.rs
@@ -862,21 +862,19 @@ impl ConfigurationView {
let terms_button = Button::new("terms_of_service", "Terms of Service")
.style(ButtonStyle::Subtle)
- .icon(IconName::ExternalLink)
+ .icon(IconName::ArrowUpRight)
.icon_color(Color::Muted)
+ .icon_size(IconSize::XSmall)
.on_click(move |_, cx| cx.open_url("https://zed.dev/terms-of-service"));
- let text =
- "In order to use Zed AI, please read and accept our terms and conditions to continue:";
+ let text = "To start using Zed AI, please read and accept the";
let form = v_flex()
- .gap_2()
- .child(Label::new("Terms and Conditions"))
- .child(Label::new(text))
- .child(h_flex().justify_center().child(terms_button))
+ .gap_1()
+ .child(h_flex().child(Label::new(text)).child(terms_button))
.child(
- h_flex().justify_center().child(
- Button::new("accept_terms", "I've read and accept the terms of service")
+ h_flex().child(
+ Button::new("accept_terms", "I've read and accept the Terms of Service")
.style(ButtonStyle::Tinted(TintColor::Accent))
.disabled(accept_terms_disabled)
.on_click({