Git Product home page Git Product logo

Comments (6)

jtdaugherty avatar jtdaugherty commented on July 19, 2024

Right now we set the background color because the foreground color choices are made based on a dark background. (If you leave the background color unset then you get potentially bad results.) There's another ticket about this, but I want to have themes and be able to choose them at runtime.

from matterhorn.

dagit avatar dagit commented on July 19, 2024

With color schemes like solarized that shouldn't be an issue (all the colors are chosen to have decent contrast regardless of light or dark bg). Of course, not everyone uses solarized.

from matterhorn.

jtdaugherty avatar jtdaugherty commented on July 19, 2024

Yeah, but the trouble is that the colors currently configured in the application assume a dark background and Solarized has a light-background variant that won't work well with those choices. So if your terminal uses solarized-light then you won't be able to see some of the text we render. And even if it works out okay, there will be other color themes for which that won't work, so leaving the background color unset is risky in general. (I'm not saying the user shouldn't get to configure this, just that it's not a good default behavior to leave it unset.)

from matterhorn.

jtdaugherty avatar jtdaugherty commented on July 19, 2024

My commit for this ticket didn't leave the background color alone for the reason I mentioned above, but I did add theme support. (This just adds built-in theme support; the next step is to make it possible to override theme colors from the config.)

from matterhorn.

dagit avatar dagit commented on July 19, 2024

We should mention this new config option to @lcasburn.

from matterhorn.

jtdaugherty avatar jtdaugherty commented on July 19, 2024

(See also the /theme command.)

from matterhorn.

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.