Browse Source

Better handling of theme updates.

pull/101/head
Abhishek 3 years ago
parent
commit
144a3ae2e1
  1. 3
      Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift
  2. 2
      Clocker/Preferences/General/PreferencesViewController.swift

3
Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift

@ -257,6 +257,9 @@ class AppFeedbackWindowController: NSWindowController {
[accessoryInfo].forEach { $0?.textColor = Themer.shared().mainTextColor() } [accessoryInfo].forEach { $0?.textColor = Themer.shared().mainTextColor() }
contactBox.borderColor = Themer.shared().mainTextColor() contactBox.borderColor = Themer.shared().mainTextColor()
feedbackTextView.backgroundColor = Themer.shared().mainBackgroundColor()
nameField.backgroundColor = Themer.shared().mainBackgroundColor()
emailField.backgroundColor = Themer.shared().mainBackgroundColor()
} }
private func setUnderline(for button: UnderlinedButton?, range: NSRange) { private func setUnderline(for button: UnderlinedButton?, range: NSRange) {

2
Clocker/Preferences/General/PreferencesViewController.swift

@ -249,7 +249,7 @@ class PreferencesViewController: ParentViewController {
} }
timezoneTableView.backgroundColor = Themer.shared().mainBackgroundColor() timezoneTableView.backgroundColor = Themer.shared().mainBackgroundColor()
availableTimezoneTableView.backgroundColor = Themer.shared().mainBackgroundColor() availableTimezoneTableView.backgroundColor = Themer.shared().textBackgroundColor()
timezonePanel.backgroundColor = Themer.shared().textBackgroundColor() timezonePanel.backgroundColor = Themer.shared().textBackgroundColor()
timezonePanel.contentView?.wantsLayer = true timezonePanel.contentView?.wantsLayer = true
timezonePanel.contentView?.layer?.backgroundColor = Themer.shared().textBackgroundColor().cgColor timezonePanel.contentView?.layer?.backgroundColor = Themer.shared().textBackgroundColor().cgColor

Loading…
Cancel
Save