Commit 359ef7a1 authored by David Fuhrmann's avatar David Fuhrmann

macosx: simple prefs: Only show font family and subtype in the font panel

Other settings like font size do not have any effect and confuse users.
parent 40bcff3b
......@@ -25,7 +25,7 @@
#import "intf.h"
#import <vlc_common.h>
@interface VLCSimplePrefs : NSObject <NSToolbarDelegate>
@interface VLCSimplePrefs : NSObject <NSToolbarDelegate, NSWindowDelegate>
{
IBOutlet id o_audio_dolby_pop;
IBOutlet id o_audio_dolby_txt;
......
......@@ -1262,7 +1262,8 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
[[NSFontManager sharedFontManager] setSelectedFont:font isMultiple:NO];
}
[[NSFontManager sharedFontManager] setTarget: self];
[[NSFontPanel sharedFontPanel] orderFront:self];
[[NSFontPanel sharedFontPanel] setDelegate:self];
[[NSFontPanel sharedFontPanel] makeKeyAndOrderFront:self];
}
- (void)changeFont:(id)sender
......@@ -1272,6 +1273,11 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
[self osdSettingChanged:self];
}
- (NSUInteger)validModesForFontPanel:(NSFontPanel *)fontPanel
{
return NSFontPanelFaceModeMask | NSFontPanelCollectionModeMask;
}
- (IBAction)inputSettingChanged:(id)sender
{
if (sender == o_input_cachelevel_pop) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment