normen / whatscli

A command line interface for WhatsApp
599 stars 46 forks source link

Call For Color Schemes #24

Open normen opened 3 years ago

normen commented 3 years ago

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.

BachoSeven commented 3 years ago

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

normen commented 3 years ago

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?

surskitt commented 3 years ago

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?

normen commented 3 years ago

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

BachoSeven commented 3 years ago

@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 (?)

normen commented 3 years ago

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.

BachoSeven commented 3 years ago

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.

tomshoo commented 3 years ago

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

normen commented 3 years ago

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 😅

kurokirasama commented 2 years ago

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

samuelstevens commented 2 years ago

@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?

normen commented 2 years ago

@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.

samuelstevens commented 2 years ago

Great, opened a PR here.

IAteNoodles-Linux commented 2 years ago

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