Unify icons using multiple variants, remove all unused icons
This commit is contained in:
parent
f4e40b3411
commit
24974ee2fa
514 changed files with 86 additions and 4033 deletions
|
@ -337,7 +337,7 @@ impl Pane {
|
|||
// New menu
|
||||
.with_child(Self::render_tab_bar_button(
|
||||
0,
|
||||
"icons/plus_12.svg",
|
||||
"icons/plus.svg",
|
||||
false,
|
||||
Some(("New...".into(), None)),
|
||||
cx,
|
||||
|
@ -352,7 +352,7 @@ impl Pane {
|
|||
))
|
||||
.with_child(Self::render_tab_bar_button(
|
||||
1,
|
||||
"icons/split_12.svg",
|
||||
"icons/split.svg",
|
||||
false,
|
||||
Some(("Split Pane".into(), None)),
|
||||
cx,
|
||||
|
@ -369,10 +369,10 @@ impl Pane {
|
|||
let icon_path;
|
||||
let tooltip_label;
|
||||
if pane.is_zoomed() {
|
||||
icon_path = "icons/minimize_8.svg";
|
||||
icon_path = "icons/minimize.svg";
|
||||
tooltip_label = "Zoom In";
|
||||
} else {
|
||||
icon_path = "icons/maximize_8.svg";
|
||||
icon_path = "icons/maximize.svg";
|
||||
tooltip_label = "Zoom In";
|
||||
}
|
||||
|
||||
|
@ -1535,7 +1535,7 @@ impl Pane {
|
|||
let close_element = if hovered {
|
||||
let item_id = item.id();
|
||||
enum TabCloseButton {}
|
||||
let icon = Svg::new("icons/x_mark_8.svg");
|
||||
let icon = Svg::new("icons/x.svg");
|
||||
MouseEventHandler::new::<TabCloseButton, _>(item_id, cx, |mouse_state, _| {
|
||||
if mouse_state.hovered() {
|
||||
icon.with_color(tab_style.icon_close_active)
|
||||
|
@ -1701,7 +1701,7 @@ impl View for Pane {
|
|||
|
||||
let mut tab_row = Flex::row()
|
||||
.with_child(nav_button(
|
||||
"icons/arrow_left_16.svg",
|
||||
"icons/arrow_left.svg",
|
||||
button_style.clone(),
|
||||
nav_button_height,
|
||||
tooltip_style.clone(),
|
||||
|
@ -1726,7 +1726,7 @@ impl View for Pane {
|
|||
))
|
||||
.with_child(
|
||||
nav_button(
|
||||
"icons/arrow_right_16.svg",
|
||||
"icons/arrow_right.svg",
|
||||
button_style.clone(),
|
||||
nav_button_height,
|
||||
tooltip_style,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue