mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Do not use NSBackgroundStyleRaised for views in file browser header
It does not appear to have any effect and is probably (semantically) wrong now that buttons are placed on “header” material (on 10.14).
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
|
||||
static NSButton* OakCreateImageButton (NSString* imageName)
|
||||
{
|
||||
NSButton* res = [NSButton new];
|
||||
[[res cell] setBackgroundStyle:NSBackgroundStyleRaised];
|
||||
NSButton* res = [[NSButton alloc] initWithFrame:NSZeroRect];
|
||||
[res setButtonType:NSMomentaryChangeButton];
|
||||
[res setBordered:NO];
|
||||
[res setImage:[NSImage imageNamed:imageName]];
|
||||
@@ -16,7 +15,6 @@ static NSButton* OakCreateImageButton (NSString* imageName)
|
||||
static NSPopUpButton* OakCreateFolderPopUpButton ()
|
||||
{
|
||||
NSPopUpButton* res = [[NSPopUpButton alloc] initWithFrame:NSZeroRect pullsDown:YES];
|
||||
[[res cell] setBackgroundStyle:NSBackgroundStyleRaised];
|
||||
[res setContentCompressionResistancePriority:NSLayoutPriorityDefaultLow forOrientation:NSLayoutConstraintOrientationHorizontal];
|
||||
[res setContentHuggingPriority:NSLayoutPriorityFittingSizeCompression forOrientation:NSLayoutConstraintOrientationHorizontal];
|
||||
[res setContentHuggingPriority:NSLayoutPriorityDefaultLow forOrientation:NSLayoutConstraintOrientationVertical];
|
||||
|
||||
Reference in New Issue
Block a user