Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

assistant: Adjust the ToS acceptance card design (#23599)

Danilo Leal802d7421bc1c
diff --git a/crates/language_models/src/provider/cloud.rs b/crates/language_models/src/provider/cloud.rs
index 4621236785a..adb7960d9f2 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({