fix: compile gold popup arrow under Objective-C++

这个提交包含在:
mac 于 2026-11-04 10:45:17 +08:00 提交
1 父节点 1eacf595fc
当前提交 870f0064c2
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -91,7 +91,7 @@ void DYDrawThemeSurface(NSBezierPath *path,BOOL card) {
NSMutableDictionary *attributes=[NSMutableDictionary dictionaryWithDictionary:DYThemeTextAttributes(self.font?:[NSFont systemFontOfSize:11],[DYThemeColor(@"text")colorWithAlphaComponent:self.enabled?1:.45])];NSMutableParagraphStyle *paragraph=[[[NSMutableParagraphStyle alloc]init]autorelease];paragraph.lineBreakMode=NSLineBreakByTruncatingTail;attributes[NSParagraphStyleAttributeName]=paragraph;
CGFloat y=NSMidY(self.bounds)-(self.font?:[NSFont systemFontOfSize:11]).pointSize*.62;
[(self.selectedItem.title?:@"")drawInRect:NSMakeRect(9,y,MAX(0,self.bounds.size.width-29),18) withAttributes:attributes];
[@"⌄"drawInRect:NSMakeRect(self.bounds.size.width-20,y,13,18) withAttributes:attributes];
[@"⌄" drawInRect:NSMakeRect(self.bounds.size.width-20,y,13,18) withAttributes:attributes];
if(self.window.firstResponder==self){[DYThemeColor(@"accent")setStroke];path.lineWidth=2;[path stroke];}
}
@end