mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Tweak layout spacing
This commit is contained in:
@@ -177,6 +177,7 @@ static path::glob_list_t globs_for_path (std::string const& path)
|
||||
{
|
||||
if((self = [super init]))
|
||||
{
|
||||
[self.window setContentBorderThickness:57 forEdge:NSMaxYEdge];
|
||||
self.tableView.allowsMultipleSelection = YES;
|
||||
|
||||
NSCell* cell = [OFBPathInfoCell new];
|
||||
|
||||
@@ -90,8 +90,8 @@ NSMutableAttributedString* CreateAttributedStringWithMarkedUpRanges (std::string
|
||||
_window = [[NSPanel alloc] initWithContentRect:NSMakeRect(600, 700, 400, 500) styleMask:(NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask|NSTexturedBackgroundWindowMask) backing:NSBackingStoreBuffered defer:NO];
|
||||
[_window setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];
|
||||
[_window setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge];
|
||||
[_window setContentBorderThickness:57 forEdge: NSMaxYEdge];
|
||||
[_window setContentBorderThickness:23 forEdge: NSMinYEdge];
|
||||
[_window setContentBorderThickness:32 forEdge:NSMaxYEdge];
|
||||
[_window setContentBorderThickness:23 forEdge:NSMinYEdge];
|
||||
[[_window standardWindowButton:NSWindowMiniaturizeButton] setHidden:YES];
|
||||
[[_window standardWindowButton:NSWindowZoomButton] setHidden:YES];
|
||||
_window.autorecalculatesKeyViewLoop = YES;
|
||||
|
||||
@@ -58,7 +58,7 @@ static FileChooserSymbolItem* CreateItem (document::document_ptr const& document
|
||||
|
||||
[contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-(8)-[searchField(>=50)]-(8)-|" options:0 metrics:nil views:views]];
|
||||
[contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[scrollView(==topDivider,==bottomDivider)]|" options:0 metrics:nil views:views]];
|
||||
[contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-(24)-[statusTextField]-[itemCountTextField]-|" options:NSLayoutFormatAlignAllCenterY metrics:nil views:views]];
|
||||
[contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-[statusTextField]-[itemCountTextField]-|" options:NSLayoutFormatAlignAllCenterY metrics:nil views:views]];
|
||||
[contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-(2)-[searchField]-(8)-[topDivider][scrollView(>=50)][bottomDivider]-(4)-[statusTextField]-(5)-|" options:0 metrics:nil views:views]];
|
||||
}
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user