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

Default background behind the bar. #2

Open
FlyinCow opened this issue Jul 11, 2024 · 4 comments
Open

Default background behind the bar. #2

FlyinCow opened this issue Jul 11, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@FlyinCow
Copy link

I'm trying to make a nice rounded-corner bar while I find there's a default background. It only appears with blur effect on.
style.css:

.bar {
  background-color: rgba(255, 255, 255, 1); // only to make it more clear
  padding: 0 8px;
  border-radius: 8px;
}

With bars.blur_effect.enabled=true and bars.blur_effect.arcylic=true in config.yaml:
image

With bars.blur_effect.enabled=true butbars.blur_effect.arcylic=false:
image

With bar.blur_effect.enabled=false it will disappear:
image

There may be something to do with PyQT itself. Rather removing this background or making a bar.border option with will be generous.

BTW is this bar just a PyQT window at all? Maybe I will learn to fix it myself.

@FlyinCow
Copy link
Author

Meanwhile I find that backdrop-filter and filter won't work in style.css, so I have to rely on bars.blur_effect.

@amnweb
Copy link
Owner

amnweb commented Jul 11, 2024

Yeah, I know about this. This is something which I will try to fix in the next few days. It's not just bar but same problem on power menu popup when blur is enabled. If you find how to make it please open PR.

@eivl
Copy link

eivl commented Jul 13, 2024

I have been looking into the details about this issue @FlyinCow; it does not look like you can make the blurred background translucent. The Windows API on this topic is a bit unclear to me, so I might not be correct, so think of this as a good, educated guess.

Pre windows 8.1 I have found solutions that could work, I however dont use ancient windows versions, and I dont think having mixed support of features is a good way either.

There are ways to work around this issue. That is, to create two separate bars of different sizes and use the second as a border to hide the square corners.

image
image

But this requires a significant rewrite of the original forked code. This is something I can do if we as a community want that. We could also talk to the original authors and contributors to see if they have some insights.

@amnweb amnweb added help wanted Extra attention is needed enhancement New feature or request labels Aug 19, 2024
@amnweb amnweb pinned this issue Aug 26, 2024
@amnweb
Copy link
Owner

amnweb commented Sep 3, 2024

This should be fixed in the dev branch now, we are moving to the proper Windows API, so now the radius is controlled by the OS. Unfortunately, the Windows API does not allow setting a custom radius.

image

image

@amnweb amnweb self-assigned this Sep 5, 2024
@github-actions github-actions bot added the stale label Oct 6, 2024
Repository owner deleted a comment from github-actions bot Oct 15, 2024
@amnweb amnweb removed the stale label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants