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

[Bug] mpris widget appears to have permanent inset transparent shadow #438

Open
huntekye opened this issue Jun 12, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@huntekye
Copy link

huntekye commented Jun 12, 2024

Describe the bug
Whenever the left or right edges of .widget-mpris-player come very close to the edge of one of .widget-mpris, .widget-mpris > box, or .widget-mpris > box > button, the left/right edge of .widget-mpris-player has a feathered transparent bit, which seems to defy any attempt to remove it.

To Reproduce
Steps to reproduce the behavior:

  1. The following section in config.json
"mpris": {
  "image-size": 96,
  "image-radius": 7,
  "blur" : false
},
  1. Example style.css 1, with 1 active player:
.widget-mpris {
  background: black;
  box-shadow: none;
  border: none;
  padding: 0px;
  margin: 0px;
}
.widget-mpris > box {
  background: grey;
  box-shadow: none;
  border: none;
  padding: 0px;
  margin: 0px;
}
.widget-mpris > box > button {
  background: green;
  box-shadow: none;
  border: none;
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
}
.widget-mpris-player {
  background: white;
  box-shadow: none;
  border: none;
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
}
.widget-mpris-album-art {
  box-shadow: none;
  margin: 20px;
}

image

  1. Example style.css 2, with 1 active player:
.widget-mpris {
  background: black;
  box-shadow: none;
  border: none;
  padding: 20px;
  margin: 0px;
}
.widget-mpris > box {
  background: grey;
  box-shadow: none;
  border: none;
  padding: 0px;
  margin: 0px;
}
.widget-mpris > box > button {
  background: green;
  box-shadow: none;
  border: none;
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
}
.widget-mpris-player {
  background: white;
  box-shadow: none;
  border: none;
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
}
.widget-mpris-album-art {
  box-shadow: none;
  margin: 20px;
}

image

  1. Example style.css 3, with 2 active players:
.widget-mpris {
  background: black;
  box-shadow: none;
  border: none;
  padding: 20px;
  margin: 0px;
}
.widget-mpris > box {
  background: grey;
  box-shadow: none;
  border: none;
  padding: 20px;
  margin: 0px;
}
.widget-mpris > box > button {
  background: green;
  box-shadow: none;
  border: none;
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
}
.widget-mpris-player {
  background: white;
  box-shadow: none;
  border: none;
  border-radius: 0px;
  padding: 0px;
  margin: 0px;
}
.widget-mpris-album-art {
  box-shadow: none;
  margin: 20px;
}

image

Expected behavior
Ideally there should be some way to remove these faded edges on the player, which I have not managed to do. I'm considering this a bug since none of the other widgets seem to behave the same way.

Desktop:

  • OS: Arch: 6.9.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000 x86_64 GNU/Linux
  • WM: sway
  • Version: swaync 0.10.1
@huntekye huntekye added the bug Something isn't working label Jun 12, 2024
@ErikReider
Copy link
Owner

It's a fade effect that I added so that the widget doesn't just disappear when switching to a different player.
swappy-20240728_153924

It isn't supposed to be visible when not scrolling though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants