|
@@ -428,6 +428,8 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
|
|
|
findJobsCTAPill.layer?.backgroundColor = (ctaHovering ? Theme.brandBlueHover : Theme.brandBlue).cgColor
|
|
findJobsCTAPill.layer?.backgroundColor = (ctaHovering ? Theme.brandBlueHover : Theme.brandBlue).cgColor
|
|
|
sendIconView.contentTintColor = Theme.proCTAText
|
|
sendIconView.contentTintColor = Theme.proCTAText
|
|
|
sendLabel.textColor = Theme.proCTAText
|
|
sendLabel.textColor = Theme.proCTAText
|
|
|
|
|
+ clearChatButton.layer?.backgroundColor = Theme.brandBlue.cgColor
|
|
|
|
|
+ clearChatButton.contentTintColor = Theme.proCTAText
|
|
|
freeJobSearchQuotaLabel.textColor = Theme.secondaryText
|
|
freeJobSearchQuotaLabel.textColor = Theme.secondaryText
|
|
|
|
|
|
|
|
appearanceModeSegment?.selectedSegment = AppAppearanceManager.shared.mode.segmentIndex
|
|
appearanceModeSegment?.selectedSegment = AppAppearanceManager.shared.mode.segmentIndex
|
|
@@ -636,11 +638,24 @@ final class DashboardView: NSView, NSTextFieldDelegate, NSSharingServicePickerDe
|
|
|
chatHeaderLeadingSpacer.setContentHuggingPriority(.defaultLow, for: .horizontal)
|
|
chatHeaderLeadingSpacer.setContentHuggingPriority(.defaultLow, for: .horizontal)
|
|
|
clearChatButton.translatesAutoresizingMaskIntoConstraints = false
|
|
clearChatButton.translatesAutoresizingMaskIntoConstraints = false
|
|
|
clearChatButton.bezelStyle = .rounded
|
|
clearChatButton.bezelStyle = .rounded
|
|
|
- clearChatButton.font = .systemFont(ofSize: 12, weight: .medium)
|
|
|
|
|
|
|
+ clearChatButton.controlSize = .regular
|
|
|
|
|
+ clearChatButton.font = .systemFont(ofSize: 13, weight: .medium)
|
|
|
|
|
+ clearChatButton.isBordered = false
|
|
|
|
|
+ clearChatButton.wantsLayer = true
|
|
|
|
|
+ clearChatButton.layer?.cornerRadius = 8
|
|
|
|
|
+ clearChatButton.layer?.backgroundColor = Theme.brandBlue.cgColor
|
|
|
|
|
+ clearChatButton.contentTintColor = Theme.proCTAText
|
|
|
|
|
+ clearChatButton.focusRingType = .none
|
|
|
clearChatButton.target = self
|
|
clearChatButton.target = self
|
|
|
clearChatButton.action = #selector(didTapClearChat)
|
|
clearChatButton.action = #selector(didTapClearChat)
|
|
|
clearChatButton.toolTip = L("Remove all messages and start a new conversation")
|
|
clearChatButton.toolTip = L("Remove all messages and start a new conversation")
|
|
|
clearChatButton.setContentHuggingPriority(.required, for: .horizontal)
|
|
clearChatButton.setContentHuggingPriority(.required, for: .horizontal)
|
|
|
|
|
+ let clearChatHorizontalPad: CGFloat = 12
|
|
|
|
|
+ let clearChatMinWidth = clearChatButton.intrinsicContentSize.width + clearChatHorizontalPad * 2
|
|
|
|
|
+ NSLayoutConstraint.activate([
|
|
|
|
|
+ clearChatButton.heightAnchor.constraint(equalToConstant: 30),
|
|
|
|
|
+ clearChatButton.widthAnchor.constraint(greaterThanOrEqualToConstant: clearChatMinWidth)
|
|
|
|
|
+ ])
|
|
|
chatHeaderRow.addArrangedSubview(chatHeaderLeadingSpacer)
|
|
chatHeaderRow.addArrangedSubview(chatHeaderLeadingSpacer)
|
|
|
chatHeaderRow.addArrangedSubview(clearChatButton)
|
|
chatHeaderRow.addArrangedSubview(clearChatButton)
|
|
|
mainOverlay.addArrangedSubview(chatHeaderRow)
|
|
mainOverlay.addArrangedSubview(chatHeaderRow)
|