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

Transparency #1

Open
ethanh92 opened this issue Mar 6, 2022 · 4 comments
Open

Transparency #1

ethanh92 opened this issue Mar 6, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@ethanh92
Copy link

ethanh92 commented Mar 6, 2022

Is there a way to make the background transparent via configuration or would the source code need to be modified?
I'm using Alacritty if it's at all relevant.

@murtaza-u
Copy link
Owner

Diving deeper into the issue, It seems like setting the colors to their
default value makes tview(the TUI library this project is using) to
respect the default terminal colors. This also means that if you have
transparency enabled in your terminal, trt should respect that too.
This overall looks like a good improvement to add to the project.
I'll raise a PR making the necessary required changes.

tview.Styles.TitleColor = tcell.ColorDefault
tview.Styles.BorderColor = tcell.ColorDefault
tview.Styles.PrimaryTextColor = tcell.ColorDefault
tview.Styles.PrimitiveBackgroundColor = tcell.ColorDefault

Also sorry for the late reply @ethanh92 . GitHub no longer notifies me about newly
opened issues, for some reason.

@ethanh92
Copy link
Author

Just updated to the latest version with transparency. Thanks for that. However, the highlight on the currently selected torrent is also transparent now which means that unfortunately I can't tell which torrent in the list is selected.

@murtaza-u
Copy link
Owner

Rolled back to the previous commit. I've seemed to have tried everything to get transparency working, but to no avail. I'll keep this issue open for further discussion.

@murtaza-u murtaza-u pinned this issue Apr 24, 2022
@murtaza-u murtaza-u added the enhancement New feature or request label Apr 24, 2022
@murtaza-u murtaza-u unpinned this issue Aug 1, 2022
@rodrigo-sys
Copy link

you can change the background opacity of alacritty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants