darac / irssi-powerline

Powerline theme for IRSSI
GNU General Public License v2.0
33 stars 1 forks source link

256 colour support #9

Open kierun opened 7 years ago

kierun commented 7 years ago

Is there a quick way to get solarize to use 256 colours?

darac commented 7 years ago

If I'm understanding Ethan Schoonover's original intent correctly, 256 colour support should be considered a second-class citizen. Either you should configure apps to use 16-colour mode and configure your terminal to render those 16 colours correctly or you should use true-colour (24-bit) mode.

As I use irssi within tmux (which doesn't support 24-bit colour), I personally won't add 24-bit colour... Actually, I suppose I can. Recent changes have harmonised the colours, so I guess I can just translate them.

Yeah. I'll add 24-bit colour. Oh, and if I'm reading the irssi manual correctly, irssi may be able to degrade the 24-bit colour to 256 colour mode, too.

kierun commented 7 years ago

I use tmux as well but that works with 256 colours. Nonetheless, your efforts are much appreciated!

I tried to do it myself using some crude search-and-replace and got no where fast. ☹ Work did interrupt my hacking, how dare it⸮

kierun commented 7 years ago

It appears that tmux now supports 24-bit colour and CHANGE logs. So YAY! ☺

darac commented 7 years ago

I've just pushed a new branch "truecolour" which upgrades the theme to use 24-bit colours. IRSSI should downgrade these to 256-colour.

You'll need to merge some small changes in the config file, then switch to one either solarized-powerline-dark.theme or solarized-powerline-light.theme.

Let me know if you see anything that needs work but, for me, there's not much of a visible difference between the old version (16-colour with a solarized terminal) and the new version (24-bit on either a solarized or non-solarized terminal).

kierun commented 7 years ago

This is awesome! Many thanks indeed.

screenshot

Screen shot with urxvt, tmux, and irssi in full colourful glory ☺