瀏覽代碼

【fix】【BOTA】注释列表筛选界面UI不一致

tangchao 4 月之前
父節點
當前提交
a8cc39be02

+ 10 - 6
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Annotation/View/KMNoteFilterStateCollevtionViewItem.swift

@@ -24,6 +24,7 @@ class KMNoteFilterStateCollevtionViewItem: NSCollectionViewItem {
 //        self.box.borderColor = NSColor(hex: "#E2E3E6")
         self.box.borderWidth = 0
         
+        self.label.font = .systemFont(ofSize: 13)
         self.label.textColor = KMAppearance.Layout.h0Color()
     }
     
@@ -32,15 +33,18 @@ class KMNoteFilterStateCollevtionViewItem: NSCollectionViewItem {
             if (self.isSelected) {
 //                self.label.layer?.backgroundColor = KMAppearance.Interactive.a0Color().cgColor
 //                self.box.fillColor = KMAppearance.Interactive.a0Color()
-                if KMAppearance.isDarkMode() {
-                    self.box.fillColor = NSColor(hex: "227AFF").withAlphaComponent(0.3)
-                } else {
-                    self.box.fillColor = NSColor(hex: "#4178E2")
-                }
+//                if KMAppearance.isDarkMode() {
+//                    self.box.fillColor = NSColor(hex: "227AFF").withAlphaComponent(0.3)
+//                    self.box.fillColor = NSColor(hex: "#3D78F6")
+//                } else {
+//                    self.box.fillColor = NSColor(hex: "#4178E2")
+//                }
+                self.box.fillColor = KMAppearance.Interactive.a0Color()
                 self.label.textColor = KMAppearance.Layout.w0Color()
             } else {
 //                self.label.layer?.backgroundColor = KMAppearance.Else.textTagColor().cgColor
-                self.box.fillColor = NSColor(hex: "$000000").withAlphaComponent(0.15)
+//                self.box.fillColor = NSColor(hex: "$000000").withAlphaComponent(0.15)
+                self.box.fillColor = KMAppearance.Else.textTagColor()
                 self.label.textColor = KMAppearance.Layout.h0Color()
             }
         }