feat: added tooltips to the missing elements and enabled accessibility on some not natively supported (#2321)

This commit is contained in:
Serhiy Mytrovtsiy
2025-01-17 18:32:29 +01:00
parent 8de91d9d74
commit 08c4ab9f97
13 changed files with 63 additions and 11 deletions

View File

@@ -486,6 +486,8 @@ public class PieChartView: NSView {
self.segments = segments
super.init(frame: frame)
self.setAccessibilityElement(true)
}
required init?(coder: NSCoder) {
@@ -575,6 +577,15 @@ public class HalfCircleGraphView: NSView {
public var color: NSColor = NSColor.systemBlue
public override init(frame: NSRect) {
super.init(frame: frame)
self.setAccessibilityElement(true)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
public override func draw(_ rect: CGRect) {
let arcWidth: CGFloat = 7.0
let radius = (min(self.frame.width, self.frame.height) - arcWidth) / 2