KMToolbarMainItemView.swift 651 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // KMToolbarMainItemView.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2023/12/14.
  6. //
  7. import Cocoa
  8. class KMToolbarMainItemView: KMToolbarItemView {
  9. override class var textFont: NSFont {
  10. get {
  11. .systemFont(ofSize: 11)
  12. }
  13. }
  14. override class var textNormalColor: NSColor {
  15. get {
  16. KMAppearance.subtitleColor()
  17. }
  18. }
  19. override class var textSelectedColor: NSColor {
  20. get {
  21. KMAppearance.subtitleColor()
  22. }
  23. }
  24. override func draw(_ dirtyRect: NSRect) {
  25. super.draw(dirtyRect)
  26. // Drawing code here.
  27. }
  28. }