Open normen opened 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):
(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
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?
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?
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 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 (?)
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.
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.
Well I tried to make it look like a vintage type blue background and all, I hope you like it:
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 😅
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
@normen I guess it should be
black
because that's usually what represents the terminal background in TUI applications, but usingblack
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 I guess it should be
black
because that's usually what represents the terminal background in TUI applications, but usingblack
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.
Great, opened a PR here.
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
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.