Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add console option to select icon theme #100

Merged
merged 6 commits into from
Jan 19, 2019
Merged

Conversation

loewenheim
Copy link
Contributor

I’ve added a console option called theme to select an icon set. The possible values are default for the current behavior and unicode to use only the default unicode icons. Unfortunately, the unicode icons don’t show up correctly on my machine, so I can’t really verify.

This fixes #40.

Sebastian Zivota added 2 commits January 14, 2019 19:47
It's just an icon set with empty icon maps, so everything should
fall through to the default folder/file icons.
Possible values are `default` and `unicode`.
Copy link
Collaborator

@Peltoche Peltoche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @loewenheim ,

Thanks for the PR! I think the unicode icons don't show up because if you set --theme=unicode you return and empty HashMap for the Icons.icons_by_name and Icons.icons_by_extension.

src/icon.rs Outdated Show resolved Hide resolved
src/icon.rs Outdated Show resolved Hide resolved
src/app.rs Outdated Show resolved Hide resolved
@loewenheim
Copy link
Contributor Author

I don’t know why this CI task fails.
cargo +beta test --target "x86_64-unknown-linux-gnu" --verbose works on my computer.

Copy link
Collaborator

@Peltoche Peltoche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Almost good!

There is just some tiny aesthetics comments.

Thanks for the new tests BTW :)

src/icon.rs Outdated Show resolved Hide resolved
src/icon.rs Outdated Show resolved Hide resolved
src/icon.rs Outdated Show resolved Hide resolved
src/icon.rs Outdated Show resolved Hide resolved
@Peltoche
Copy link
Collaborator

I don’t know why this CI task fails.
cargo +beta test --target "x86_64-unknown-linux-gnu" --verbose works on my computer.

I don't know why but sometime a simple restart do the trick. This should be a travis bug I guess...

@Peltoche Peltoche merged commit 5ad0fb1 into lsd-rs:master Jan 19, 2019
@Peltoche
Copy link
Collaborator

All good! Merged! Thanks for the contribution. :)

@loewenheim
Copy link
Contributor Author

My pleasure :)

@loewenheim loewenheim deleted the issue40 branch January 20, 2019 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set an unicode only icon set
3 participants