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:
Danilo Leal 2024-10-08 19:32:52 +02:00 committed by GitHub
parent 3f2de172ae
commit af9a595770
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 122 additions and 82 deletions

View file

@ -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());
}),