Repo // Better handling with tooltip colors.
This commit is contained in:
parent
6060cc4fbf
commit
751824feef
|
@ -117,6 +117,7 @@ public class TooltipUI: NSWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public func hide() {
|
public func hide() {
|
||||||
|
setColor(state: .normal)
|
||||||
window?.orderOut(nil)
|
window?.orderOut(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,9 +62,7 @@ extension SessionCtl {
|
||||||
do {
|
do {
|
||||||
tooltipInstance.hide()
|
tooltipInstance.hide()
|
||||||
tooltipInstance = .init()
|
tooltipInstance = .init()
|
||||||
if state.type == .ofMarking {
|
tooltipInstance.setColor(state: state.data.tooltipColorState)
|
||||||
tooltipInstance.setColor(state: state.data.tooltipColorState)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// 再設定其文字顯示內容並顯示。
|
// 再設定其文字顯示內容並顯示。
|
||||||
tooltipInstance.show(
|
tooltipInstance.show(
|
||||||
|
|
Loading…
Reference in New Issue