|
|
@@ -428,6 +428,8 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
|
|
428
|
428
|
findJobsCTAPill.layer?.backgroundColor = (ctaHovering ? Theme.brandBlueHover : Theme.brandBlue).cgColor
|
|
429
|
429
|
sendIconView.contentTintColor = Theme.proCTAText
|
|
430
|
430
|
sendLabel.textColor = Theme.proCTAText
|
|
|
431
|
+ clearChatButton.layer?.backgroundColor = Theme.brandBlue.cgColor
|
|
|
432
|
+ clearChatButton.contentTintColor = Theme.proCTAText
|
|
431
|
433
|
freeJobSearchQuotaLabel.textColor = Theme.secondaryText
|
|
432
|
434
|
|
|
433
|
435
|
appearanceModeSegment?.selectedSegment = AppAppearanceManager.shared.mode.segmentIndex
|
|
|
@@ -636,11 +638,24 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
|
|
636
|
638
|
chatHeaderLeadingSpacer.setContentHuggingPriority(.defaultLow, for: .horizontal)
|
|
637
|
639
|
clearChatButton.translatesAutoresizingMaskIntoConstraints = false
|
|
638
|
640
|
clearChatButton.bezelStyle = .rounded
|
|
639
|
|
- clearChatButton.font = .systemFont(ofSize: 12, weight: .medium)
|
|
|
641
|
+ clearChatButton.controlSize = .regular
|
|
|
642
|
+ clearChatButton.font = .systemFont(ofSize: 13, weight: .medium)
|
|
|
643
|
+ clearChatButton.isBordered = false
|
|
|
644
|
+ clearChatButton.wantsLayer = true
|
|
|
645
|
+ clearChatButton.layer?.cornerRadius = 8
|
|
|
646
|
+ clearChatButton.layer?.backgroundColor = Theme.brandBlue.cgColor
|
|
|
647
|
+ clearChatButton.contentTintColor = Theme.proCTAText
|
|
|
648
|
+ clearChatButton.focusRingType = .none
|
|
640
|
649
|
clearChatButton.target = self
|
|
641
|
650
|
clearChatButton.action = #selector(didTapClearChat)
|
|
642
|
651
|
clearChatButton.toolTip = L("Remove all messages and start a new conversation")
|
|
643
|
652
|
clearChatButton.setContentHuggingPriority(.required, for: .horizontal)
|
|
|
653
|
+ let clearChatHorizontalPad: CGFloat = 12
|
|
|
654
|
+ let clearChatMinWidth = clearChatButton.intrinsicContentSize.width + clearChatHorizontalPad * 2
|
|
|
655
|
+ NSLayoutConstraint.activate([
|
|
|
656
|
+ clearChatButton.heightAnchor.constraint(equalToConstant: 30),
|
|
|
657
|
+ clearChatButton.widthAnchor.constraint(greaterThanOrEqualToConstant: clearChatMinWidth)
|
|
|
658
|
+ ])
|
|
644
|
659
|
chatHeaderRow.addArrangedSubview(chatHeaderLeadingSpacer)
|
|
645
|
660
|
chatHeaderRow.addArrangedSubview(clearChatButton)
|
|
646
|
661
|
mainOverlay.addArrangedSubview(chatHeaderRow)
|