Resize window
kgn opened this issue · 1 comments
kgn commented
It would be great if the window could be resized
nicu commented
You could make it resizable by changing the style mask from NSBorderlessWindowMask
to NSResizableWindowMask
in the file SNRHUDWindow.m
.
Example:
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
{
if ((self = [super initWithContentRect:contentRect styleMask:NSResizableWindowMask backing:bufferingType defer:deferCreation])) {
[self setOpaque:NO];
[self setBackgroundColor:[NSColor clearColor]];
[self setMovableByWindowBackground:YES];
[self setLevel:NSFloatingWindowLevel];
}
return self;
}