From 280b58dfd85b0d48166fc44d3debedf89108f09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Lo=CC=81pez=20Brante?= Date: Thu, 23 Jun 2022 21:36:31 -0400 Subject: [PATCH] [Sandbox] Fixed path suggester window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a title to the window, make the table view resize properly, and remove the font size inheritance from the main window. Signed-off-by: Kevin LoĢpez Brante --- Preferences/Preferences/GeneralPane.m | 6 +-- Preferences/Preferences/PathSuggester.xib | 53 +++++++++++++++-------- 2 files changed, 38 insertions(+), 21 deletions(-) diff --git a/Preferences/Preferences/GeneralPane.m b/Preferences/Preferences/GeneralPane.m index fb10fae32..eee2be0bc 100644 --- a/Preferences/Preferences/GeneralPane.m +++ b/Preferences/Preferences/GeneralPane.m @@ -53,7 +53,7 @@ NSDictionary *item = [[sandboxPathBehaviorController arrangedObjects] objectAtIndex:row]; - float fontSize = [[[NSUserDefaultsController sharedUserDefaultsController] defaults] floatForKey:@"fontSize"]; + /*float fontSize = [[[NSUserDefaultsController sharedUserDefaultsController] defaults] floatForKey:@"fontSize"];*/ NSString *cellText = @""; @@ -73,9 +73,9 @@ if(cellView.textField) { cellView.textField.allowsDefaultTighteningForTruncation = YES; - NSFont *font = [NSFont monospacedDigitSystemFontOfSize:fontSize weight:NSFontWeightRegular]; + //NSFont *font = [NSFont monospacedDigitSystemFontOfSize:fontSize weight:NSFontWeightRegular]; - cellView.textField.font = font; + //cellView.textField.font = font; cellView.textField.stringValue = cellText; cellView.textField.alignment = cellTextAlignment; diff --git a/Preferences/Preferences/PathSuggester.xib b/Preferences/Preferences/PathSuggester.xib index d179b56ec..433cc9496 100644 --- a/Preferences/Preferences/PathSuggester.xib +++ b/Preferences/Preferences/PathSuggester.xib @@ -14,7 +14,7 @@ - + @@ -23,26 +23,14 @@ - - - - + + - + - + @@ -135,12 +123,41 @@ - + + + + + + + + + + + + + + + + + + + +