FIX: font of object list

Change-Id: Ifb198a8b6af89ee9a089d88d98d495821b5fce7e
This commit is contained in:
chunmao.guo 2022-08-05 18:39:02 +08:00 committed by Lane.Wei
parent b96ca57fde
commit 21d13646d8
5 changed files with 23 additions and 4 deletions

View file

@ -13,7 +13,6 @@ extern void set_miniaturizable(void * window);
void WKWebView_evaluateJavaScript(void * web, wxString const & script, void (*callback)(wxString const &));
void set_title_colour_after_set_title();
void initGestures(void * view, wxEvtHandler * handler);
#endif

View file

@ -1,4 +1,6 @@
#import "MacDarkMode.hpp"
#include "../GUI/Widgets/Label.hpp"
#include "wx/osx/core/cfstring.h"
#import <algorithm>
@ -74,7 +76,7 @@ void WKWebView_evaluateJavaScript(void * web, wxString const & script, void (*ca
}
}];
}
}
}
@ -178,6 +180,17 @@ void WKWebView_evaluateJavaScript(void * web, wxString const & script, void (*ca
@end
/* Font for wxTextCtrl */
@implementation NSTableHeaderCell (Font)
- (NSFont*) font
{
return Label::sysFont(13).OSXGetNSFont();
}
@end
/* remove focused border for wxTextCtrl */
@implementation NSTextField (FocusRing)