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.

Add small improvement to the theme picker footer (#25088)

Danilo Leal8a7565e04b7d
diff --git a/crates/theme_selector/src/theme_selector.rs b/crates/theme_selector/src/theme_selector.rs
index aaca1b02106..d64591707c4 100644
--- a/crates/theme_selector/src/theme_selector.rs
+++ b/crates/theme_selector/src/theme_selector.rs
@@ -330,17 +330,22 @@ impl PickerDelegate for ThemeSelectorDelegate {
) -> Option<gpui::AnyElement> {
Some(
h_flex()
- .w_full()
.p_2()
+ .w_full()
+ .justify_between()
.gap_2()
.border_t_1()
.border_color(cx.theme().colors().border_variant)
.child(
- Button::new("docs", "Theme Docs").on_click(cx.listener(|_, _, _, cx| {
- cx.open_url("https://zed.dev/docs/themes");
- })),
+ Button::new("docs", "View Theme Docs")
+ .icon(IconName::ArrowUpRight)
+ .icon_position(IconPosition::End)
+ .icon_size(IconSize::XSmall)
+ .icon_color(Color::Muted)
+ .on_click(cx.listener(|_, _, _, cx| {
+ cx.open_url("https://zed.dev/docs/themes");
+ })),
)
- .child(div().flex_grow())
.child(
Button::new("more-themes", "Install Themes").on_click(cx.listener({
move |_, _, window, cx| {