Giter Site home page Giter Site logo

Preview text too dark about jnv HOT 10 CLOSED

corneliusroemer avatar corneliusroemer commented on May 22, 2024 6
Preview text too dark

from jnv.

Comments (10)

ynqa avatar ynqa commented on May 22, 2024 4

@corneliusroemer Thank you for your suggestion and even for the swift PR 👓

However, instead of changing the current defaults for themes including colors, I'm considering designing a config file that allows users to set their terminal themes on their side.

from jnv.

ynqa avatar ynqa commented on May 22, 2024 2

@daviddenton cc @corneliusroemer

Thank you for using it ✌️ and I understand your point about wanting to temporarily change the color scheme for better visibility.

In that case, let's proceed with merging #4.

However, I have one comment. I would like to differentiate the colors for each UI component, so I want to separate the colors for readline prompt (=prefix) and JSON keys.

prefix_style: StyleBuilder::new().fgc(Color::Cyan).build(),
key_style: StyleBuilder::new().fgc(Color::Cyan).build(),

As a note, since most of the colors other than the Darkxxxx presets are already in use, it might be a good idea to specify using Color::Rgb { r: (), g: (), b: () }. If you have any suggestions for good colors, please let me know.

from jnv.

daviddenton avatar daviddenton commented on May 22, 2024 2

Splitting the colours for maximum tweaking is probably great from a colourblind perspective so I do think that would be a good option. No preferences on colour really as long as it's lighter than the dark blue 😉

from jnv.

daviddenton avatar daviddenton commented on May 22, 2024 1

Firstly - JNV is great - so useful already - but I (and my pair) also struggled with the colour-scheme.

As a maintainer myself - I understand that you'll want time to do a proper job on the config file (which also sounds like a great idea btw). Would it be worth merging/release this in the meantime, which would be the best of both worlds? 😄

from jnv.

aodj avatar aodj commented on May 22, 2024 1

100% agree, I very nearly gave up on using jnv purely because of this issue.

from jnv.

ynqa avatar ynqa commented on May 22, 2024 1

@corneliusroemer Thanks for your contributing 👍 I just released v0.1.2. Please check.

from jnv.

nicolabeghin avatar nicolabeghin commented on May 22, 2024

+1 for the color review, same issue - on a side note, excellent tool @ynqa !!! 💯

from jnv.

corneliusroemer avatar corneliusroemer commented on May 22, 2024

A workaround is to change the colormap of your terminal's ANSI colors - this is actually a more sustainable change for readability. I'm using hyper and I can change the hex code for Blue (the color that's particularly hard to read) - that way that color becomes more readable for all tools and no longer needs to be avoided outright.

Terminal level customizability of ANSI colors is one of the reasons why using explicit rgb might harm accessibility @daviddenton If you are red-green color blind, the best thing to do is to remap the hex codes for the corresponding ANSI codes.

from jnv.

corneliusroemer avatar corneliusroemer commented on May 22, 2024

Yah! This now works, excellent, thanks! @ynqa

from jnv.

daviddenton avatar daviddenton commented on May 22, 2024

yep. So much better! Thanks 🙃

from jnv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.