mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: different active window border style #239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thearturca on GitHub (Aug 29, 2023).
Is your feature request related to a problem? Please describe.
First of all thank you for great WM that I use every day. It helps my orginize things on desktop. I love it, especially in combination with yasb.
I searched issues and discussions but didnt find answer for my question.
Can komorebi have ability to choose border-style. Currently I'm using border width 16 to fill the gaps between border and actual window. If I set smaller width, like 4 or 8 it start showing gaps between window and border.
What Im using - border width 32
I have problem with that - border width 6
Describe the solution you'd like
I want to choose border position style like in Figma or smth (Outside, Inside, Center).
Currently I see it works like Inside border and starts with gap from window. I requesting Outside border style. Dont know about implementation, but border could be behind window and growing outside like in next image.
What I expect to see in komorebi - border width 4 (or 6)
Maybe komorebi have something like that but I missed it in docs and Issues.
@thearturca commented on GitHub (Sep 12, 2023):
I see the technology behind border drawing. Its GDI pen drswing in WM_PAINT callback of the border window, which doesn't have pen alignment property. But in GDI+ you have SetAlignment for pen.
I could implement that, but I need to learn rust an figured out where the GDI+ bindings in windows-rs if they are exists.
Or I have to go even deeper and learn Direct2D or something like that.
@LGUG2Z commented on GitHub (Sep 12, 2023):
I think that you're looking for this command to compensate for the gaps between the border and the window when changing the active window border width:
@cloudUser98 commented on GitHub (Sep 18, 2023):
For me the offset option is taking in consideration the window padding so there is still a gap between the actual window and the border.
@thearturca commented on GitHub (Sep 18, 2023):
Hello

You can set negative offset to clear the gaps between window and border. It looks like this:
There is no gaps except the corners of window. Here still some gaps but they are not noticeable.
That's my current config for border
Idk maybe should close this issue? Because negative offset kind of solves original issue. Just need add some info in docs that you can set negative offset
@LGUG2Z commented on GitHub (Sep 21, 2023):
I was about to create a tutorial video for setting negative offsets today when I noticed that the static config options for setting the border width and offsets unfortunately leak and implementation detail which means that the
offsetoption takes aRectinstead of a signed integer. I'll fix this for the next release, and then it should be possible to set the negative offsets with a single signed integer value directly in the static config file too.@LGUG2Z commented on GitHub (Sep 22, 2023):
Video of me working on this here: https://www.youtube.com/watch?v=nsJz4KJrBsA
From v0.1.19, in the static config file,
border_widthandborder_offsetwill be deprecated and users will be directed by the documentation to useactive_window_border_widthandactive_window_border_offset, both of which share the same names as, and take the same arguments as the correspondingkomorebiccommands!