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

terminal no longer has transparency/opacity #1103

Open
plasmoduck opened this issue Jun 11, 2023 · 8 comments
Open

terminal no longer has transparency/opacity #1103

plasmoduck opened this issue Jun 11, 2023 · 8 comments
Labels
core:ui meta:help-wanted Good for developers with limited familiarity with the codebase.

Comments

@plasmoduck
Copy link

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

rnpnr commented Jun 11, 2023

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

plasmoduck commented Jun 11, 2023 via email

@plasmoduck
Copy link
Author

plasmoduck commented Jun 12, 2023 via email

@plasmoduck
Copy link
Author

plasmoduck commented Jun 12, 2023 via email

@esdnm
Copy link

esdnm commented Jul 3, 2023

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

rnpnr commented Jul 3, 2023

Patches are welcome!

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

@lobre
Copy link

lobre commented Aug 17, 2023

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.

@rnpnr rnpnr added the meta:help-wanted Good for developers with limited familiarity with the codebase. label Oct 11, 2023
@rnpnr rnpnr added the core:ui label Oct 23, 2023
rnpnr added a commit to rnpnr/vis that referenced this issue Nov 10, 2023
The old style handling had a lot edge cases where one of the
colors or the attribute wouldn't get applied correctly. This
commit adds a new style_set() method to the Ui which should be
called instead of manually touching a cells style. This also means
that the Cell struct can be made opaque since all the handling is
now done inside the ui-terminal files.

With this makes it is now viable to combine the light and dark 16
color themes into a single base-16 theme. This theme works very
well with the Linux virtual console and will now be the default
theme regardless of if the terminal supports 256 colors or not.
This should address the common complaints about vis not respecting
the users default terminal colors.

fixes martanne#1151: Theming is sometimes partially applied or ignored
see martanne#1103: terminal no longer has transparency/opacity
see martanne#1040: Transparent background and setting options by default
rnpnr added a commit to rnpnr/vis that referenced this issue Nov 10, 2023
The old style handling had a lot edge cases where one of the
colours or the attribute wouldn't get applied correctly. This
commit adds a new style_set() method to the Ui which should be
called instead of manually touching a cell's style. This also
means that the Cell struct can be made opaque since all the
handling is now done inside the ui-terminal files.

With this it is now viable to combine the light and dark 16 colour
themes into a single base-16 theme. This theme works very well
with the Linux virtual console and will now be the default theme
regardless of if the terminal supports 256 colours or not.  This
should address the common complaints about vis not respecting the
users default terminal colours.

fixes martanne#1151: Theming is sometimes partially applied or ignored
see martanne#1103: terminal no longer has transparency/opacity
see martanne#1040: Transparent background and setting options by default
rnpnr added a commit to rnpnr/vis that referenced this issue Dec 5, 2023
The old style handling had a lot edge cases where one of the
colours or the attribute wouldn't get applied correctly. This
commit adds a new style_set() method to the Ui which should be
called instead of manually touching a cell's style. This also
means that the Cell struct can be made opaque since all the
handling is now done inside the ui-terminal files.

With this it is now viable to combine the light and dark 16 colour
themes into a single base-16 theme. This theme works very well
with the Linux virtual console and will now be the default theme
regardless of if the terminal supports 256 colours or not.  This
should address the common complaints about vis not respecting the
users default terminal colours.

fixes martanne#1151: Theming is sometimes partially applied or ignored
see martanne#1103: terminal no longer has transparency/opacity
see martanne#1040: Transparent background and setting options by default
rnpnr added a commit to rnpnr/vis that referenced this issue Dec 6, 2023
The old style handling had a lot edge cases where one of the
colours or the attribute wouldn't get applied correctly. This
commit adds a new style_set() method to the Ui which should be
called instead of manually touching a cell's style. This also
means that the Cell struct can be made opaque since all the
handling is now done inside the ui-terminal files.

With this it is now viable to combine the light and dark 16 colour
themes into a single base-16 theme. This theme works very well
with the Linux virtual console and will now be the default theme
regardless of if the terminal supports 256 colours or not.  This
should address the common complaints about vis not respecting the
users default terminal colours.

fixes martanne#1151: Theming is sometimes partially applied or ignored
see martanne#1103: terminal no longer has transparency/opacity
see martanne#1040: Transparent background and setting options by default
rnpnr added a commit to rnpnr/vis that referenced this issue Feb 16, 2024
The old style handling had a lot edge cases where one of the
colours or the attribute wouldn't get applied correctly. This
commit adds a new style_set() method to the Ui which should be
called instead of manually touching a cell's style. This also
means that the Cell struct can be made opaque since all the
handling is now done inside the ui-terminal files.

With this it is now viable to combine the light and dark 16 colour
themes into a single base-16 theme. This theme works very well
with the Linux virtual console and will now be the default theme
regardless of if the terminal supports 256 colours or not.  This
should address the common complaints about vis not respecting the
users default terminal colours.

fixes martanne#1151: Theming is sometimes partially applied or ignored
see martanne#1103: terminal no longer has transparency/opacity
see martanne#1040: Transparent background and setting options by default
@ForestOctopus
Copy link

ForestOctopus commented Mar 23, 2024

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.
:-)

rnpnr added a commit to rnpnr/vis that referenced this issue Mar 27, 2024
The old style handling had a lot edge cases where one of the
colours or the attribute wouldn't get applied correctly. This
commit adds a new style_set() method to the Ui which should be
called instead of manually touching a cell's style. This also
means that the Cell struct can be made opaque since all the
handling is now done inside the ui-terminal files.

With this it is now viable to combine the light and dark 16 colour
themes into a single base-16 theme. This theme works very well
with the Linux virtual console and will now be the default theme
regardless of if the terminal supports 256 colours or not.  This
should address the common complaints about vis not respecting the
users default terminal colours.

fixes martanne#1151: Theming is sometimes partially applied or ignored
see martanne#1103: terminal no longer has transparency/opacity
see martanne#1040: Transparent background and setting options by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core:ui meta:help-wanted Good for developers with limited familiarity with the codebase.
Projects
None yet
Development

No branches or pull requests

5 participants