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

Panel corners black after toggling overview #139

Open
ajbucci opened this issue Apr 10, 2021 · 3 comments
Open

Panel corners black after toggling overview #139

ajbucci opened this issue Apr 10, 2021 · 3 comments
Assignees
Labels

Comments

@ajbucci
Copy link
Contributor

ajbucci commented Apr 10, 2021

When toggling overview on gnome 40 the panel corners become black if hide corners is enabled, and become semi-transparent otherwise. I'm on arch using nvidia proprietary drivers on xorg. Not sure if any of that matters :) great extension btw!!

@ewlsh ewlsh self-assigned this Apr 10, 2021
@ewlsh ewlsh added the bug label Apr 10, 2021
@ajbucci
Copy link
Contributor Author

ajbucci commented Apr 11, 2021

For hide corners enabled here is some gnome-shell.css that can remove the corner entirely:

#panel .panel-corner {
-panel-corner-radius: 0px;
-panel-corner-border-width: 0px;}

As for the more-opaque corner when hide corners is disabled, this is also fixed if you set -panel-corner-border-width to 0px. The gnome default theme uses a panel-corner-border-width value of 2px. This creates an overlap with the top bar that is more opaque. Here is the css to fix the bug currently occurring with hide corners disabled:

#panel .panel-corner {
-panel-corner-border-width: 0px;}

@Arcitec
Copy link

Arcitec commented Apr 26, 2021

@ewlsh Hi Evan! Found your incredible extension today. And also found another extension that properly hides the corners on GNOME 40:

https://extensions.gnome.org/extension/4201/remove-rounded-corners/
https://github.com/ogarcia/remove-rounded-corners

As you can see from their stylesheet, this is all that's needed:

extension.js:

const Main = imports.ui.main;
function init() {}
function enable() {
  Main.panel._leftCorner.actor.add_style_class_name('no-radius');
  Main.panel._rightCorner.actor.add_style_class_name('no-radius');
}
function disable() {
  Main.panel._leftCorner.actor.remove_style_class_name('no-radius');
  Main.panel._rightCorner.actor.remove_style_class_name('no-radius');
}

stylesheet.css"

.no-radius.panel-corner { -panel-corner-radius: 0; }

That's literally it. Nothing else is needed. This fully removes the desktop's wallpaper rounding. But preserves it correctly in the Activities Overview mode. :-)

@ewlsh
Copy link
Owner

ewlsh commented Nov 11, 2021

The latest version should support corners correctly in GNOME 41, I have to test the behavior in GNOME 40 for those still on that version.

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

Successfully merging a pull request may close this issue.

3 participants