mirror of
https://github.com/coteditor/CotEditor.git
synced 2026-05-17 12:40:36 +00:00
Revert "Use ImageResource constants in FormPopUpButtons"
This reverts commit 9c75bdefc9.
This commit is contained in:
@@ -120,7 +120,7 @@ public final class FormPopUpButtonCell: NSPopUpButtonCell {
|
||||
}
|
||||
|
||||
// draw chevron
|
||||
let chevron = NSImage(resource: .chevronUpChevronDownNarrow)
|
||||
let chevron = NSImage(resource: ImageResource(name: "chevron.up.chevron.down.narrow", bundle: .module))
|
||||
chevron.tinted(with: labelColor)
|
||||
.draw(in: rect.insetBy(dx: (rect.width - chevron.size.width) / 2,
|
||||
dy: (rect.height - chevron.size.height) / 2))
|
||||
@@ -168,7 +168,7 @@ public final class FormPopUpButtonCell: NSPopUpButtonCell {
|
||||
}
|
||||
|
||||
// draw chevron
|
||||
let chevron = NSImage(resource: .chevronUpChevronDownNarrowLegacy)
|
||||
let chevron = NSImage(resource: ImageResource(name: "chevron.up.chevron.down.narrow.legacy", bundle: .module))
|
||||
let chevronColor: NSColor = switch (isHighContrast, self.isEnabled) {
|
||||
case (false, true): .controlTextColor
|
||||
case (false, false): .disabledControlTextColor
|
||||
|
||||
Reference in New Issue
Block a user