whatscli icon indicating copy to clipboard operation
whatscli copied to clipboard

Call For Color Schemes

Open normen opened this issue 5 years ago • 14 comments

Everyone with a feel for colors is very welcome to post their color settings here. To aid you theres a "hidden" /colorlist command that lists and displays all available colors.

normen avatar Nov 28 '20 17:11 normen

I've tried to make a very basic theme which "resembles" gruvbox, since that is the main theme I use for my terminal applications.

[colors]
background       = black
text             = papayawhip
forwarded_text   = plum
list_header      = darkgoldenrod
list_contact     = darkseagreen
list_group       = cadetblue
chat_contact     = goldenrod
chat_me          = forestgreen
borders          = snow
input_background = navy
input_text       = beige
unread_count     = gold
positive         = lime
negative         = maroon

screenshot (if anybody know a simple way to blur parts of an image, plz let me know lol): gruvbox

(Would it possible to give colors as "hex" values (that is, if one's terminal supports enough colors)? I think tcell supports truecolor)

EDIT(s): improved the theme to make it look more like gruvbox

BachoSeven avatar Nov 29 '20 20:11 BachoSeven

So cool, thanks!

I guess it should be possible possible to use other colors - for now though I am basically just mapping these names that tview stores in an array to tview color structs. So its only those names that will work. To support other colors I'd have to implement some kind of parsing I suppose.. Maybe tview has something built in?

normen avatar Nov 29 '20 22:11 normen

since we're talking about colours, what's the right way to enable transparent backgrounds (or just the default terminal background I guess) if possible?

surskitt avatar Dec 22 '20 14:12 surskitt

since we're talking about colours, what's the right way to enable transparent backgrounds (or just the default terminal background I guess) if possible?

There isn't really but in the end your terminal also uses one of its colors for the background and that color should also be in the /colorlist

normen avatar Dec 22 '20 14:12 normen

@normen I guess it should be black because that's usually what represents the terminal background in TUI applications, but using black fror the background color doesn't seem to work for transparency.

Perhaps this is also related to the question of how to use "hex" colors

P.S. I think there is an issue with trying to read the name of the color of the terminal background from /colorlist: since the names of the colors are drawn in their own color, it would supposedly be "black on black" making it hard to read it (?)

BachoSeven avatar Dec 22 '20 15:12 BachoSeven

P.S. I think there is an issue with trying to read the name of the color of the terminal background from /colorlist: since the names of the colors are drawn in their own color, it would supposedly be "black on black" making it hard to read it (?)

So if you have a seemingly empty line thats probably the one you should copy-paste then :) But maybe a new issue about handing colors with a bit of gathered information about tview and colors would be a better place for this discussion.

normen avatar Dec 22 '20 15:12 normen

In the kitty terminal, black is indeed the bakground colour and is shown as transparent; while in st this does not work.

So, the transparency issue is one related to the terminal, and not a whatscli issue.

BachoSeven avatar Dec 25 '20 16:12 BachoSeven

Well I tried to make it look like a vintage type blue background and all, I hope you like it: Screenshot from 2021-04-30 15-32-29

tomshoo avatar Apr 30 '21 10:04 tomshoo

Well I tried to make it look like a vintage type blue background and all, I hope you like it:

Weee, reminds me of Amiga times 😅

normen avatar May 01 '21 20:05 normen

Mine is really simple:

[colors]
background       = black
text             = white
forwarded_text   = purple
list_header      = yellow
list_contact     = green
list_group       = blue
chat_contact     = green
chat_me          = black
borders          = white
input_background = blue
input_text       = white
unread_count     = yellow
positive         = green
negative         = red

whatscli

kurokirasama avatar Nov 03 '21 00:11 kurokirasama

@normen I guess it should be black because that's usually what represents the terminal background in TUI applications, but using black fror the background color doesn't seem to work for transparency.

Perhaps this is also related to the question of how to use "hex" colors

P.S. I think there is an issue with trying to read the name of the color of the terminal background from /colorlist: since the names of the colors are drawn in their own color, it would supposedly be "black on black" making it hard to read it (?)

I would like to take a shot at adding hex code support in the configuration. @normen do you have any preference for how to contribute? Or is forking + opening a PR good enough?

samuelstevens avatar Nov 12 '21 16:11 samuelstevens

@normen I guess it should be black because that's usually what represents the terminal background in TUI applications, but using black fror the background color doesn't seem to work for transparency. Perhaps this is also related to the question of how to use "hex" colors P.S. I think there is an issue with trying to read the name of the color of the terminal background from /colorlist: since the names of the colors are drawn in their own color, it would supposedly be "black on black" making it hard to read it (?)

I would like to take a shot at adding hex code support in the configuration. @normen do you have any preference for how to contribute? Or is forking + opening a PR good enough?

Sure, a normal PR is fine. This isn't a large-scale project, it's just me uploading what I did for myself 🙂

About the background issue: Actually blank works as transparent/default background.

normen avatar Nov 12 '21 17:11 normen

Great, opened a PR here.

samuelstevens avatar Nov 12 '21 21:11 samuelstevens

2022-03-05_00-41

33   │ [colors]
 34   │ background       = #0000ff
 35   │ text             = blue
 36   │ forwarded_text   = purple
 37   │ list_header      = yellow
 38   │ list_contact     = green
 39   │ list_group       = blue
 40   │ chat_contact     = green
 41   │ chat_me          = blue
 42   │ borders          = red
 43   │ input_background = black
 44   │ input_text       = red
 45   │ unread_count     = yellow
 46   │ positive         = blue
 47   │ negative         = green

IAteNoodles-Linux avatar Mar 04 '22 19:03 IAteNoodles-Linux