Add small improvement to the theme picker footer (#25088)
- Always start a button's label with an imperative verb - Use the `ArrowUpRight` icon when the button opens an external link <img width="700" alt="Screenshot 2025-01-21 at 11 20 49 AM" src="https://github.com/user-attachments/assets/383d9bad-2756-4e85-acad-4ed956f541cb" /> Release Notes: - N/A
This commit is contained in:
parent
8e7cad7848
commit
8a7565e04b
1 changed files with 10 additions and 5 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue