ssh: Add tweaks to the UI (#18817)
Follow up to https://github.com/zed-industries/zed/pull/18727 --- Release Notes: - N/A
This commit is contained in:
parent
3f2de172ae
commit
af9a595770
4 changed files with 122 additions and 82 deletions
|
@ -24,8 +24,8 @@ use smallvec::SmallVec;
|
|||
use std::sync::Arc;
|
||||
use theme::ActiveTheme;
|
||||
use ui::{
|
||||
h_flex, prelude::*, Avatar, Button, ButtonLike, ButtonStyle, ContextMenu, Icon, IconName,
|
||||
Indicator, PopoverMenu, Tooltip,
|
||||
h_flex, prelude::*, Avatar, Button, ButtonLike, ButtonStyle, ContextMenu, Icon,
|
||||
IconButtonShape, IconName, IconSize, Indicator, PopoverMenu, Tooltip,
|
||||
};
|
||||
use util::ResultExt;
|
||||
use vcs_menu::{BranchList, OpenRecent as ToggleVcsMenu};
|
||||
|
@ -274,18 +274,19 @@ impl TitleBar {
|
|||
};
|
||||
let indicator = div()
|
||||
.absolute()
|
||||
.w_1_4()
|
||||
.h_1_4()
|
||||
.size_1p5()
|
||||
.right_0p5()
|
||||
.bottom_0p5()
|
||||
.p_1()
|
||||
.rounded_2xl()
|
||||
.rounded_full()
|
||||
.bg(indicator_color.color(cx));
|
||||
|
||||
Some(
|
||||
div()
|
||||
.relative()
|
||||
.child(
|
||||
IconButton::new("ssh-server-icon", IconName::Server)
|
||||
.icon_size(IconSize::Small)
|
||||
.shape(IconButtonShape::Square)
|
||||
.tooltip(move |cx| {
|
||||
Tooltip::with_meta(
|
||||
"Remote Project",
|
||||
|
@ -294,7 +295,6 @@ impl TitleBar {
|
|||
cx,
|
||||
)
|
||||
})
|
||||
.shape(ui::IconButtonShape::Square)
|
||||
.on_click(|_, cx| {
|
||||
cx.dispatch_action(OpenRemote.boxed_clone());
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue