Make symbol images images scale correctly. Fixes #2957
This commit is contained in:
parent
ffed4fbbd5
commit
1ab727a128
@ -102,6 +102,10 @@ private extension IconView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func rectForImageView() -> NSRect {
|
func rectForImageView() -> NSRect {
|
||||||
|
guard !(iconImage?.isSymbol ?? false) else {
|
||||||
|
return NSMakeRect(0.0, 0.0, bounds.size.width, bounds.size.height)
|
||||||
|
}
|
||||||
|
|
||||||
guard let image = iconImage?.image else {
|
guard let image = iconImage?.image else {
|
||||||
return NSRect.zero
|
return NSRect.zero
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,10 @@ private extension IconView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func rectForImageView() -> NSRect {
|
func rectForImageView() -> NSRect {
|
||||||
|
guard !(iconImage?.isSymbol ?? false) else {
|
||||||
|
return NSMakeRect(0.0, 0.0, bounds.size.width, bounds.size.height)
|
||||||
|
}
|
||||||
|
|
||||||
guard let image = iconImage?.image else {
|
guard let image = iconImage?.image else {
|
||||||
return NSRect.zero
|
return NSRect.zero
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user