Skip to content

Commit

Permalink
Updated icon
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Sep 30, 2024
1 parent 5ccbe82 commit 8c783c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions assets/fontello/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
"css": "popup",
"code": 59406,
"src": "typicons"
},
{
"uid": "8ea66d97faf9816abd34f48f3f26d216",
"css": "bucket",
"code": 59408,
"src": "entypo"
}
]
}
Binary file modified fonts/halloy-icons.ttf
Binary file not shown.
4 changes: 4 additions & 0 deletions src/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ pub fn popout<'a>() -> Text<'a> {
to_text('\u{E80E}')
}

pub fn logs<'a>() -> Text<'a> {
to_text('\u{E810}')
}

fn to_text<'a>(unicode: char) -> Text<'a> {
text(unicode.to_string())
.line_height(LineHeight::Relative(1.0))
Expand Down
3 changes: 1 addition & 2 deletions src/screen/dashboard/sidebar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ impl Sidebar {
.iter(main_window)
.any(|(_, _, pane)| matches!(pane.buffer, crate::buffer::Buffer::Logs(_)));
menu_buttons = menu_buttons.push(new_button(
// TODO: Update
icon::copy(),
icon::logs(),
theme::text::primary,
Some(Message::ToggleLogs),
logs_open,
Expand Down

0 comments on commit 8c783c1

Please sign in to comment.