TooltipUI // Disable movability.

This commit is contained in:
ShikiSuen 2022-09-24 00:19:08 +08:00
parent dbd7dc92a1
commit 2f1b4f8aeb
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public class TooltipUI: NSWindowController {
panel.level = NSWindow.Level(Int(kCGPopUpMenuWindowLevel) + 2) panel.level = NSWindow.Level(Int(kCGPopUpMenuWindowLevel) + 2)
panel.hasShadow = true panel.hasShadow = true
panel.backgroundColor = NSColor.controlBackgroundColor panel.backgroundColor = NSColor.controlBackgroundColor
panel.isMovable = false
messageText = NSAttributedTooltipTextView() messageText = NSAttributedTooltipTextView()
messageText.backgroundColor = NSColor.controlBackgroundColor messageText.backgroundColor = NSColor.controlBackgroundColor
messageText.textColor = NSColor.textColor messageText.textColor = NSColor.textColor