Workaround initial pop-up button’s text color

This commit is contained in:
1024jp 2020-09-21 10:15:11 +09:00
parent d466e715cc
commit 8668dd1d4d
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Change Log
- [beta] Fix an issue in the navigation bar that the split editor button did not updated when change the split orientation.
- [beta] Fix an issue in the appearance pane and the multiple replacement panel that the newly added setting was not selected.
- [beta] Address an issue that the status bar rarely compressed vertically.
- [beta] Workaround an issue that the initial text color of the pop-up menus in the status bar dimmed.

View File

@ -66,6 +66,11 @@ final class StatusBarController: NSViewController {
(self.view as? NSVisualEffectView)?.material = .windowBackground
}
// workaround for the dimmed initial text color
// (FB8721478, Xcode 12.2-beta + macOS 11)
self.encodingPopUpButton?.contentTintColor = .labelColor
self.lineEndingPopUpButton?.contentTintColor = .labelColor
// set accessibility
self.view.setAccessibilityElement(true)
self.view.setAccessibilityRole(.group)