Giter VIP home page Giter VIP logo

Comments (3)

floam avatar floam commented on May 19, 2024

Also cannot set foreground colors for selected pager items, which is annoying as often the contrast of the colors involved causes terrible readability and need to be changed.

from fish-shell.

zanchey avatar zanchey commented on May 19, 2024

As noted in #6939, fish_color_comment is also affected.

from fish-shell.

shlemas avatar shlemas commented on May 19, 2024

I recently wanted to play with making a terminal/fish theme based on flatwhite which is a bit of an odd theme in that it does more with background colors instead of foreground colors, and I ran into this as well. fish_color_command has the same issue, maybe all of these. I believe I traced the cause to this line which hardcodes the background color to rgb_color_t::normal():

outp.set_color(rv.resolve_spec(color, false, vars), rgb_color_t::normal());

I naively changed the second parameter to the following, making the call consistent with another usage I'd seen in the codebase:

rv.resolve_spec(color, true, vars)

The second argument (Boolean) is what causes it to parse out the --background portion of the color spec or not. That ultimately happens in the parse_color function:

rgb_color_t parse_color(const env_var_t &var, bool is_background) {

But nothing changed. It seemingly was still unable to resolve the color I was specifying. That's all I've done so far, no actual debugging or deeper digging yet. I assume the background color is hardcoded to rgb_color_t::normal() for a reason.

from fish-shell.

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.