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

Improve focus hint's compatibility with transparent windows #386

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Leleat
Copy link
Owner

@Leleat Leleat commented Dec 19, 2024

See commits

Leleat added 2 commits December 19, 2024 13:37
The outline versions (animated + static) of the focus hint used a widget
that is put behind the window with a solid background color. The
reasoning behind this is to account for different border radii of
windows because if the outline actually uses a border there may be a gap
between the focus hint and the window corners. However, this didn't work
well with transparent windows. This commit adds an option to change the
style of the outline to allow for a border around the window instead of
a solid rect. This is also how the previous focus hint (aka active
window hint) worked. This means there is a gap between the window
corners and the focus hint but that is better than the focus hint being
seen through transparent windows.

Fixes #375
Previously, the focus hint outline border radius was not exposed in the
preferences window becauses I wanted to cut down on the number of
settings. However, since the previous commit added already added another
setting to make the focus hint a border only, I might as well expose
this one too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant