Coder Social home page Coder Social logo

Comments (8)

riobard avatar riobard commented on July 21, 2024

What terminal and color scheme are you using?

from bash-powerline.

nschloe avatar nschloe commented on July 21, 2024

gnome-terminal, solarized-dark.

from bash-powerline.

riobard avatar riobard commented on July 21, 2024

Solarized colors do not exactly match the color scheme of your terminal. See the table at http://ethanschoonover.com/solarized

The Values

L*a*b values are canonical (White D65, Reference D50), other values are matched in sRGB space.

SOLARIZED HEX     16/8 TERMCOL  XTERM/HEX   L*A*B      RGB         HSB
--------- ------- ---- -------  ----------- ---------- ----------- -----------
base03    #002b36  8/4 brblack  234 #1c1c1c 15 -12 -12   0  43  54 193 100  21
base02    #073642  0/4 black    235 #262626 20 -12 -12   7  54  66 192  90  26
base01    #586e75 10/7 brgreen  240 #585858 45 -07 -07  88 110 117 194  25  46
base00    #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195  23  51
base0     #839496 12/6 brblue   244 #808080 60 -06 -03 131 148 150 186  13  59
base1     #93a1a1 14/4 brcyan   245 #8a8a8a 65 -05 -02 147 161 161 180   9  63
base2     #eee8d5  7/7 white    254 #e4e4e4 92 -00  10 238 232 213  44  11  93
base3     #fdf6e3 15/7 brwhite  230 #ffffd7 97  00  10 253 246 227  44  10  99
yellow    #b58900  3/3 yellow   136 #af8700 60  10  65 181 137   0  45 100  71
orange    #cb4b16  9/3 brred    166 #d75f00 50  50  55 203  75  22  18  89  80
red       #dc322f  1/1 red      160 #d70000 50  65  45 220  50  47   1  79  86
magenta   #d33682  5/5 magenta  125 #af005f 50  65 -05 211  54 130 331  74  83
violet    #6c71c4 13/5 brmagenta 61 #5f5faf 50  15 -45 108 113 196 237  45  77
blue      #268bd2  4/4 blue      33 #0087ff 55 -10 -45  38 139 210 205  82  82
cyan      #2aa198  6/6 cyan      37 #00afaf 60 -35 -05  42 161 152 175  74  63
green     #859900  2/2 green     64 #5f8700 60 -20  65 133 153   0  68 100  60

Solarized blue is not #0087ff but rather #268bd2. #0087ff is the closest match if you use the terminal's default color scheme. For best result you should change your terminal's color scheme. Unfortunately Solarized does not offer a prebuilt color scheme for gnome-terminal.

from bash-powerline.

nschloe avatar nschloe commented on July 21, 2024

The palette I'm using is gnome-terminal-colors-solarized, and it looks quite accurate:

g

Indeed, blue is #268bd2 here.

In the bash-powerline script, I see

readonly FG_BLUE="\[$(tput setaf 33)\]"

Doesn't this set blue to #0087ff?

from bash-powerline.

riobard avatar riobard commented on July 21, 2024

It sets the foreground to color 33, and your terminal decides what actual color to use for color 33. What's the value of $TERM in your terminal?

from bash-powerline.

nschloe avatar nschloe commented on July 21, 2024

It sets the foreground to color 33, and your terminal decides what actual color to use for color 33.

Hm, really? This seems to be the issue then, 33 produces #0087ff for me, tested with

for i in {0..255} ; do
     printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i";
     if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
         printf "\n";
     fi;
done
$ echo $TERM
xterm-256color

from bash-powerline.

riobard avatar riobard commented on July 21, 2024

It's indeed very strange. Solarized used color 33 as blue for 256-color terminals, and it should produce sRGB(38, 139, 210) if your terminal is properly configured. Maybe you should try a different terminal emulator and see if this is a bug in gnome-terminal.

from bash-powerline.

nschloe avatar nschloe commented on July 21, 2024

Alright, I'll dig more in this direction. Thanks for the help! Will reopen in case I find a bug in bash-powerline.

from bash-powerline.

Related Issues (14)

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.