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

Poor visibility on white background #208

Closed
vi opened this issue May 21, 2019 · 16 comments
Closed

Poor visibility on white background #208

vi opened this issue May 21, 2019 · 16 comments
Labels
kind/bug Something isn't working

Comments

@vi
Copy link

vi commented May 21, 2019

Expected behavior

When running on white terminal background, lsd detects it and changes colour scheme appropriately. Alternatively, there is something like --color-theme=white-background option. Or just only those colours that are suitable on any background are used.

Actual behavior

screenshot

@vi vi added the kind/bug Something isn't working label May 21, 2019
@Peltoche
Copy link
Collaborator

Hi @vi ,

Here the list of possible solutions:

  • Use the LS_COLORS env variable.
  • Use the ANSI colors (discussed in Use terminal color scheme #90).
  • Wait for a solution like Themes #92 to land
  • Create the --color-theme flag but I'm not a fan to hardcode a list of theme inside the binary.

@vi
Copy link
Author

vi commented May 21, 2019

LS_COLORS seem to be about file types. And filename colours are already mostly OK-ish.

How do I set column, mode and time colours in LS_COLORS? Are there custom lsd-specific fields?

@Peltoche
Copy link
Collaborator

How do I set column, mode and time colours in LS_COLORS? Are there custom lsd-specific fields?

Nop, we don't have this yet. So the LS_COLORS doesn't solve you issue.

@meain
Copy link
Member

meain commented May 27, 2019

Related #90

@erlanger
Copy link

I am having this problem also, and I bet many people too. I hope a fix is posted soon.

@vultix
Copy link

vultix commented Sep 3, 2019

This is a blocker for me using replacing ls with lsd at the moment. I'm super busy at the moment, but will look into a solution this weekend if I get some free time.

@Svetlitski
Copy link

Any progress on this, or pointers on how to get started fixing this (if it's amenable to a newcomer I may be interested in working on it)?

@meain
Copy link
Member

meain commented Feb 28, 2020

@Svetlitski There is a solution to this at #317 but both of us a bit busy to review and merge a big PR like that right now.

A simple solution would be to implement something similar to what is discussed in #90 for all items, One issue with that is we have gradient colors for both size and date, and it is not easy to find a replacement which might works for both light and dark with simple ANSI colors, I think.
If would could get something that works, we could probably merge that in.

I think if we were to go this route, we will have to replace the defined colors with color values below 15. The function is named get_light_color_theme, but that is the only function that is called to get a color theme.

NOTE: The colors of filenames and folders are taken care of already, it is the other colors like the one for size, permission etc that is causing the trouble.

@meain
Copy link
Member

meain commented Jun 13, 2020

@Peltoche what is your opinion on have a light and minimal variant in the binary? This could be obsolete once the config option lands though.

@gitaarik
Copy link

gitaarik commented Sep 9, 2020

I think a default light and dark theme shipped in the binary would be great, since having both a dark an light theme is becoming more and more common in all kinds of applications.

@sisrfeng
Copy link

Wait for support for light color theme!

@Jerror
Copy link

Jerror commented Apr 12, 2021

Still a blocker for all of us using light themes. The long listing format is only legible on light with --color=never, but that drops the file colorization. How about an option which disables colors of everything except files? I believe that would replicate the coloring of ls exactly, so that lsd with this flag would essentially be "ls with icons." Maybe call it colors=classic.

This would resolve the issue for potential light-theme users until light theme support is implemented and may entice users who would like to use lsd for the icons but are tripped out by all the colors.

@meain
Copy link
Member

meain commented Oct 6, 2021

lsd now has support for theming as of #452. It is not yet in a release, but will be soon. Combined with LS_COLORS, lsd should now be completely usable in a light terminal.

I personally prefer a minimal colorscheme, you can use mine if you are interested. Maybe we can start a wiki page with popular themes if there is enough interest.

my personal theme

Screenshot 2021-10-06 at 10 50 10 AM

@meain meain closed this as completed Oct 6, 2021
@gitaarik
Copy link

gitaarik commented Oct 6, 2021

Nice work! I am exited to try it out soon :)

@aanari
Copy link

aanari commented May 2, 2024

This was an easy fix for me:
image

@zwpaper
Copy link
Member

zwpaper commented May 18, 2024

I am closing this since we now support color theme

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests