Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call For Color Schemes #24

Open
normen opened this issue Nov 28, 2020 · 14 comments
Open

Call For Color Schemes #24

normen opened this issue Nov 28, 2020 · 14 comments
Labels
help wanted Extra attention is needed

Comments

@normen
Copy link
Owner

normen commented Nov 28, 2020

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 normen added the help wanted Extra attention is needed label Nov 28, 2020
@normen normen pinned this issue Nov 28, 2020
@BachoSeven
Copy link

BachoSeven commented Nov 29, 2020

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
Copy link
Owner Author

normen commented Nov 29, 2020

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
Copy link

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
Copy link
Owner Author

normen commented Dec 22, 2020

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
Copy link

BachoSeven commented Dec 22, 2020

@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
Copy link
Owner Author

normen commented Dec 22, 2020

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
Copy link

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
Copy link

tomshoo commented Apr 30, 2021

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
Copy link
Owner Author

normen commented May 1, 2021

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
Copy link

kurokirasama commented Nov 3, 2021

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
Copy link

@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
Copy link
Owner Author

normen commented Nov 12, 2021

@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 added a commit to samuelstevens/whatscli that referenced this issue Nov 12, 2021
@samuelstevens
Copy link

Great, opened a PR here.

@IAteNoodles-Linux
Copy link

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

@normen normen unpinned this issue Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants