martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

terminal no longer has transparency/opacity #1103

Open plasmoduck opened 1 year ago

plasmoduck commented 1 year ago

My terminal is normally transparent/opaque. When I open vis there is no longer transparency/opacity and it is a solid color background. How to keep the transparency/opacity?

rnpnr commented 1 year ago

You will need to use a theme that just passes through the terminal background. Something like erf's minimal clear theme or my term theme should work.

If there is a particular theme you like you can modify it to just not set the background.

plasmoduck commented 1 year ago

I just use the default-16 theme cause it's the same as my existing terminal colors (gruvbox), what do I have to change in default-16?

On Mon, 12 June 2023, 1:47 am Randy Palamar, @.***> wrote:

You will need to use a theme that just passes through the terminal background. Something like erf's minimal clear theme https://github.com/erf/vis-minimal-theme/blob/main/minimal-clear.lua or my term theme https://github.com/rnpnr/dotfiles/blob/master/.config/vis/themes/term.lua should work.

If there is a particular theme you like you can modify it to just not set the background.

— Reply to this email directly, view it on GitHub https://github.com/martanne/vis/issues/1103#issuecomment-1586220736, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJMIYDE4XZM6DJ3NZC6DE3XKXSADANCNFSM6AAAAAAZCJYVGM . You are receiving this because you authored the thread.Message ID: @.***>

plasmoduck commented 1 year ago

Sorry, dark-16.lua is what I'm using.

On Mon, 12 June 2023, 9:36 am Chris Garvin, @.***> wrote:

I just use the default-16 theme cause it's the same as my existing terminal colors (gruvbox), what do I have to change in default-16?

On Mon, 12 June 2023, 1:47 am Randy Palamar, @.***> wrote:

You will need to use a theme that just passes through the terminal background. Something like erf's minimal clear theme https://github.com/erf/vis-minimal-theme/blob/main/minimal-clear.lua or my term theme https://github.com/rnpnr/dotfiles/blob/master/.config/vis/themes/term.lua should work.

If there is a particular theme you like you can modify it to just not set the background.

— Reply to this email directly, view it on GitHub https://github.com/martanne/vis/issues/1103#issuecomment-1586220736, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJMIYDE4XZM6DJ3NZC6DE3XKXSADANCNFSM6AAAAAAZCJYVGM . You are receiving this because you authored the thread.Message ID: @.***>

plasmoduck commented 1 year ago

Thanks for your reply. I tried both the themes you included, unfortunatly they both seem to paint some background color, a blushish grey. Not sure what is happening?

On Sun, Jun 11, 2023 at 08:47:13AM -0700, Randy Palamar wrote:

You will need to use a theme that just passes through the terminal background. Something like erf's minimal clear theme or my term theme should work.

If there is a particular theme you like you can modify it to just not set the background.

-- Reply to this email directly or view it on GitHub: https://github.com/martanne/vis/issues/1103#issuecomment-1586220736 You are receiving this because you authored the thread.

Message ID: @.***>

esdnm commented 12 months ago

I wish the vis came with themes that takes transparent background into account. Or a mechanism by which without modifying a themes file a transparent background can be obtained

rnpnr commented 12 months ago

Patches are welcome!

I find transparency annoying in most cases but I will set it up to test any patches.

lobre commented 10 months ago

I also think that an editor such as vis should come with a theme that does not define a solid background and that respects the background defined by the terminal. This is how vis looks like by default in my xfce-terminal.

image

It is one of the first things that newcomers see, and it is disruptive. Before even thinking about how vis works, it directly distracts me into trying to find a "sane" theme that looks like ok with my terminal colour palette.

ForestOctopus commented 3 months ago

I downloaded Gruvbox color scheme (https://github.com/samlwood/vis-gruvbox) ,which has this instruction in line 95:

-- To use your terminal's default background (e.g. for transparency), set the value below to 'back:default,fore:'..colors.fg1

So I set my line 96 as follow:

vis.lexers.STYLE_DEFAULT        = 'back:default,fore:'..colors.fg1

this makes my suckless st terminal opacity function normaly. I also find this method applies to the default. In my case default-256.lua->zenburn.lua. change back to default

lexers.STYLE_DEFAULT = 'fore:#d7d7d7,back:default'

will work. :-)