Browse Source

【注释】文字注释颜色 icon显示正常了,但是调整了颜色,不会自动变

lizhe 1 year ago
parent
commit
4ebf5d56fa

+ 4 - 4
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/View/KMGeneralButton.m

@@ -14,15 +14,15 @@
     [super drawRect:dirtyRect];
     
     CGRect rect = self.bounds;
-//    CGRect coverRect = CGRectMake(dirtyRect.size.width-2.5, 0, 0, dirtyRect.size.height);
-//    [_color setFill];
+    CGRect coverRect = CGRectMake(dirtyRect.size.width-2.5, 0, 0, dirtyRect.size.height);
+    [_color setFill];
 
     NSBezierPath *be = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:rect.size.width/2 yRadius:rect.size.height/2];
     [be fill];
 
     [_color setFill];
-//    NSBezierPath *coverpath = [NSBezierPath bezierPathWithRect:coverRect];
-//    [coverpath fill];
+    NSBezierPath *coverpath = [NSBezierPath bezierPathWithRect:coverRect];
+    [coverpath fill];
 }
 
 @end