Open Adrian-Samoticha opened 1 year ago
window_manager's setAsFrameless
removes the highlight (though not the border at the left). You might wanna have a look at that as a start.
Don't worry about the border, that one is caused by the visual effect subview of the sidebar. setAsFrameless
removes the .titled
style mask, however, doing so also has other effects, such as removing the traffic light buttons and the window's title, as well as (I believe) preventing the window from receiving keyboard events. That said, adding a function that allows the user to modify the style mask wouldn't hurt, I suppose.
Edit: I have opened an issue (#50) regarding the modification of the window's style mask.
Calling
Window.makeWindowFullyTransparent()
(introduced in #48) is supposed to make the window fully transparent (with only flutter-drawn widgets, the title, and the traffic light buttons remaining visible), however, a thin, white line, which is supposed to represent a highlight on top of the window, still remains visible:Since this is unintended, it is currently considered a bug. Ideally, there would be methods called
Window.enableHighlight()
andWindow.disableHighlight()
which could be called byWindow.makeWindowFullyTransparent()
to remove the line, however, I could not find a way to achieve this.For this reason, I am opening this issue with a “help wanted” label. If anybody knows of a way to disable the highlight of an
NSWindow
within Swift, please reach out to me.