@@ -41,8 +41,8 @@ use workspace::ProjectGroupKey;
use dev_container::{DevContainerContext, find_devcontainer_configs};
use ui::{
- ContextMenu, Divider, HighlightedLabel, KeyBinding, ListItem, ListItemSpacing, ListSubHeader,
- PopoverMenu, PopoverMenuHandle, TintColor, Tooltip, prelude::*,
+ ButtonLike, ContextMenu, Divider, HighlightedLabel, KeyBinding, ListItem, ListItemSpacing,
+ ListSubHeader, PopoverMenu, PopoverMenuHandle, TintColor, Tooltip, prelude::*,
};
use util::{ResultExt, paths::PathExt};
use workspace::{
@@ -1620,11 +1620,21 @@ impl PickerDelegate for RecentProjectsDelegate {
.border_t_1()
.border_color(cx.theme().colors().border_variant)
.child({
- let open_action = workspace::Open {
- create_new_window: self.create_new_window,
- };
- Button::new("open_local_folder", "Open Local Folders")
- .key_binding(KeyBinding::for_action_in(&open_action, &focus_handle, cx))
+ ButtonLike::new("open_local_folder")
+ .child(
+ h_flex()
+ .w_full()
+ .gap_1()
+ .justify_between()
+ .child(Label::new("Open Local Folders"))
+ .child(KeyBinding::for_action_in(
+ &workspace::Open {
+ create_new_window: self.create_new_window,
+ },
+ &focus_handle,
+ cx,
+ )),
+ )
.on_click({
let workspace = self.workspace.clone();
let create_new_window = self.create_new_window;
@@ -1639,14 +1649,21 @@ impl PickerDelegate for RecentProjectsDelegate {
})
})
.child(
- Button::new("open_remote_folder", "Open Remote Folder")
- .key_binding(KeyBinding::for_action(
- &OpenRemote {
- from_existing_connection: false,
- create_new_window: false,
- },
- cx,
- ))
+ ButtonLike::new("open_remote_folder")
+ .child(
+ h_flex()
+ .w_full()
+ .gap_1()
+ .justify_between()
+ .child(Label::new("Open Remote Folder"))
+ .child(KeyBinding::for_action(
+ &OpenRemote {
+ from_existing_connection: false,
+ create_new_window: false,
+ },
+ cx,
+ )),
+ )
.on_click(|_, window, cx| {
window.dispatch_action(
OpenRemote {