Add new pin and unpin icons (#17445)
This PR adds new SVGs for the pin and unpin icons, using a custom-made one in a smaller size, and thus removing the `PinAlt` one I added just recently. I also tweak the outline panel pin icon button tooltip strings a bit. Release Notes: - N/A
This commit is contained in:
@@ -4056,7 +4056,7 @@ impl Render for OutlinePanel {
|
||||
.child(
|
||||
v_flex().child(horizontal_separator(cx)).child(
|
||||
h_flex().p_2().child(self.filter_editor.clone()).child(
|
||||
div().border_1().child(
|
||||
div().child(
|
||||
IconButton::new(
|
||||
"outline-panel-menu",
|
||||
if pinned {
|
||||
@@ -4066,7 +4066,14 @@ impl Render for OutlinePanel {
|
||||
},
|
||||
)
|
||||
.tooltip(move |cx| {
|
||||
Tooltip::text(if pinned { "Unpin" } else { "Pin active editor" }, cx)
|
||||
Tooltip::text(
|
||||
if pinned {
|
||||
"Unpin Outline"
|
||||
} else {
|
||||
"Pin Active Outline"
|
||||
},
|
||||
cx,
|
||||
)
|
||||
})
|
||||
.shape(IconButtonShape::Square)
|
||||
.on_click(cx.listener(|outline_panel, _, cx| {
|
||||
|
||||
@@ -213,7 +213,6 @@ pub enum IconName {
|
||||
Pencil,
|
||||
Person,
|
||||
Pin,
|
||||
PinAlt,
|
||||
Play,
|
||||
Plus,
|
||||
PocketKnife,
|
||||
@@ -386,7 +385,6 @@ impl IconName {
|
||||
IconName::Pencil => "icons/pencil.svg",
|
||||
IconName::Person => "icons/person.svg",
|
||||
IconName::Pin => "icons/pin.svg",
|
||||
IconName::PinAlt => "icons/pin_alt.svg",
|
||||
IconName::Play => "icons/play.svg",
|
||||
IconName::Plus => "icons/plus.svg",
|
||||
IconName::PocketKnife => "icons/pocket_knife.svg",
|
||||
|
||||
@@ -1906,7 +1906,7 @@ impl Pane {
|
||||
.start_slot::<Indicator>(indicator)
|
||||
.map(|this| {
|
||||
let end_slot = if is_pinned {
|
||||
IconButton::new("unpin tab", IconName::PinAlt)
|
||||
IconButton::new("unpin tab", IconName::Pin)
|
||||
.shape(IconButtonShape::Square)
|
||||
.icon_color(Color::Muted)
|
||||
.size(ButtonSize::None)
|
||||
|
||||
Reference in New Issue
Block a user