-
Notifications
You must be signed in to change notification settings - Fork 158
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
overlay: make overlay's style and colors configurable #1702
Conversation
Thanks. Looks good in general.
For consistency with the rest of the
I'm fine with For reference,
Good idea. Agree. Suggest calling it |
0516a19
to
214d650
Compare
I implemented @johanmalm's suggestions, as they make sense to me. I also implemented I haven't made OSD preview color configurable yet as it's not in the scope of this PR, but it should be an easy fix. |
This change brings a subtle behavioral change that region overlay is hidden immediately when the timer for edge overlay starts.
d903bee
to
75e099a
Compare
I reorganized my commits and made some changes in
I also added |
Changes are:
|
I'm thinking of forcing outlines to be rendered when So possible change would be like:
EDIT: |
Had a look through the diff again and didn't see anything obvious.
Only slight nitpick I can think of: Other than that this looks great! |
Thank you! I'm fine with Honestly, I don't think the unicode issue (#1098?) can be a strong reason to choose it over
I'll do it myself. |
The last Last commit contains |
Thank you! I've learned so much from you about how to contribute to OSS! |
This settings allows user to choose whether to draw a filled rectangle or an outlined rectangle as the preview for window snapping.
adds theme settings like: snapping.overlay.[region|edge].bg.color: #8080b380 snapping.overlay.[region|edge].border.color: #ffffff,#000000,#ffffff snapping.overlay.[region|edge].border.width: 1
Well, thank you for your great code and responsiveness to feedback. Really appreciated :) I think the whole snapping overlay implementation is really nice out of the box but still flexible in case a user wants to change the behavior. |
I'll also make the outline colors of window-switcher preview configurable in a follow-up PR. |
This PR adds following theme settings:
snapping-preview.region.area.color
snapping-preview.edge.area.color
snapping-preview.region.rect-type
(Auto|Area|Outlines
)snapping-preview.edge.rect-type
(Auto|Area|Outlines
)I named the theme entry
rect-type
to makelabwc-theme.5.scd
easy to follow, but maybe it should be justtype
.I restructured
struct overlay
to allow independent styles for region/edge snapping overlay.I also added
inactivate_overlay()
as a refactoring.In the future, maybe we can also make the colors of outlines configurable like:
snapping-preview.region.outlines.colors: #ffffff,#000000,#ffffff
In that case, I think the colors of OSD preview should also be configurable.