Skip to content

Commit

Permalink
added multiple file icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorSMorrison committed Jun 30, 2022
1 parent b26db0d commit 3be28ad
Show file tree
Hide file tree
Showing 8 changed files with 274 additions and 0 deletions.
6 changes: 6 additions & 0 deletions icons/file_type_css.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions icons/file_type_html.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/file_type_js.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions icons/file_type_lua.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 111 additions & 0 deletions icons/file_type_python.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions icons/file_type_ts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions icons/file_type_zip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions lapce-ui/src/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ pub fn file_svg(path: &Path) -> Svg {
(&["rs"], "file_type_rust.svg"),
(&["toml"], "file_type_toml.svg"),
(&["yaml"], "file_type_yaml.svg"),
(&["py"], "file_type_python.svg"),
(&["lua"], "file_type_lua.svg"),
(&["html", "htm"], "file_type_html.svg"),
(&["zip"], "file_type_zip.svg"),
(&["js"], "file_type_js.svg"),
(&["ts"], "file_type_ts.svg"),
(&["css"], "file_type_css.svg"),
];

for (exts, file_type) in TYPES {
Expand Down

0 comments on commit 3be28ad

Please sign in to comment.