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 on Linux #16

Open
sant123 opened this issue Jul 10, 2024 · 24 comments
Open

Transparency on Linux #16

sant123 opened this issue Jul 10, 2024 · 24 comments

Comments

@sant123
Copy link

sant123 commented Jul 10, 2024

Hi, not sure if this is expected behavior but in Visual Studio Code there is no transparency in the files tab.

Zed
image

Code
image

Thanks

@sant123
Copy link
Author

sant123 commented Jul 10, 2024

I'm using Fedora 40

@sant123
Copy link
Author

sant123 commented Jul 11, 2024

Tested on Mac and works good
image

@lsunsi
Copy link

lsunsi commented Jul 11, 2024

Same here! Just installed it on Linux and transparency was definitely unexpected.

Edit: I'm also on Fedora 40, wayland.

@black-puppydog
Copy link

Running debian unstable with latest updates from today, on X11 and an AMD Vega mobile GPU.
Transparency in the sidebar makes it pretty unusable. For the time being, this is gonna be my ownly non dracula themed editor 😢

@smallSwed
Copy link

I have the same transparency issue on Ubuntu 24.04 with wayland.

@Otterpocket
Copy link
Contributor

  "experimental.theme_overrides": {
    "background.appearance": "opaque"
  },

Try putting this in the settings file.

@Otterpocket
Copy link
Contributor

Also, sorry for taking so long to respond.... GitHub notifications..

Ok so I can explain what is happening but not why.

A feature got released in zed to accommodate for transparent/blurred UI, by adding the setting above with one of the values: opaque, blurred or transparent.
For these features to do anything, parts of the theme (such as the project panel) need a 8 digit hex notation to define transparency.
This should only come into effect when blurred or transparent are set.
This has been part of the theme for quite a while now and has always worked well on Mac.

So my conclusion is that this is more of a bug with the linux release than the theme itself.

I'll look for any bug reports on the zed repo and link them here.

@lsunsi
Copy link

lsunsi commented Aug 1, 2024

@Otterpocket I just tried it, but it looks the same. Maybe I'm not placing it right

@lisotton
Copy link

lisotton commented Aug 8, 2024

I'm also having this issue. I'm on Pop_OS 22.04.
I tried the solution provided by @Otterpocket, but did not work.

@dnikoloski
Copy link

I am affected by this on Bluefin, fixed with this:

  "experimental.theme_overrides": {
    "background": "#282a36ff",
    "title_bar.background": "#141119"
  }

@smallSwed
Copy link

I am affected by this on Bluefin, fixed with this:

  "experimental.theme_overrides": {
    "background": "#282a36ff",
    "title_bar.background": "#141119"
  }

this is a good workaround, not 100% because when the Zed is out of focus the title bar and the status bar still transparent, but those can fixed also this way:

{
  "experimental.theme_overrides": {
    "background": "#282a36ff",
    "title_bar.background": "#141119ff",
    "title_bar.inactive_background": "#1c1d26ff",
    "status_bar.background": "#141119ff"
  }
}

@alvinseptiano
Copy link
Member

alvinseptiano commented Aug 11, 2024

I'm currently using Ubuntu, my workaround for this by pressing Windows / Super + M key.
Update:
I make alternative version of dracula. here https://github.com/alvinseptiano/dracula_zed
Screenshot

@Otterpocket
Copy link
Contributor

Otterpocket commented Aug 13, 2024

image

This was in the latest preview release, does it resolve this issue?
Here

@smallSwed
Copy link

unfortunately no, the side bar and the title bar still transparent:
Screenshot from 2024-08-20 10-36-17

@Otterpocket
Copy link
Contributor

unfortunately no, the side bar and the title bar still transparent: Screenshot from 2024-08-20 10-36-17

and:

  "experimental.theme_overrides": {
    "background.appearance": "opaque"
  },

still doesn't work?

@smallSwed
Copy link

nope, it does not work. It seems like that setting is ignored, nothing changes when setting to any of the valid values ("opaque", "transparent" or "blurred")

@zero-stacks
Copy link

zero-stacks commented Aug 26, 2024

unfortunately no, the side bar and the title bar still transparent: Screenshot from 2024-08-20 10-36-17

and:

  "experimental.theme_overrides": {
    "background.appearance": "opaque"
  },

still doesn't work?

mine is working i guess(fedora 40/wayland/KDE)

image

using this in settings.json:

"experimental.theme_overrides": {
    "background": "#282a36ff",
    "title_bar.background": "#141119ff",
    "title_bar.inactive_background": "#1c1d26ff",
    "status_bar.background": "#141119ff",
    "background.appearance": "opaque"
  },

@lisotton
Copy link

The suggestion from @JonasAlv worked for me.

@Otterpocket
Copy link
Contributor

Yes, Overriding the colours will certainly work as a temporary fix. I'll leave this ticket open until the actual source of the problem is fixed

@smallSwed
Copy link

I checked out the dracula.json and found this:

"status_bar.background": "#141119bb",

Why is the title_bar.background and others have transparency?
"status_bar.background": "#141119bb",
"title_bar.background": "#141119bb",

I think that is the source of the problem.

@Otterpocket
Copy link
Contributor

I checked out the dracula.json and found this:

"status_bar.background": "#141119bb",

Why is the title_bar.background and others have transparency? "status_bar.background": "#141119bb", "title_bar.background": "#141119bb",

I think that is the source of the problem.

That's meant to be there for the blurred and transparency feature to work at all.
The problem is the feature doesn't work properly on linux.
The linux version was released after the transparency feature was introduced.

image
This is what it should look like. (Mac)

@tripplehelix
Copy link

This is what it should look like. (Mac)

Could you possibly release a version without the transparencies for those of us who don't use them?

@CodeWithAlamin
Copy link

I'm also facing this issue on TUXEDO OS Plasma 6.1. But zero-stacks's workaround worked for me.

@obarahona10
Copy link

Same issue here, using Fedora 40 with Wayland.

I'll apply the workaround from @zero-stacks while this gets fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests