Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/Unity-Technologies/electron.git
ππ make displaying alternate tray image depend on mouse down event instead of highlight state
This commit is contained in:
Π ΠΎΠ΄ΠΈΡΠ΅Π»Ρ
5f0be5636a
ΠΠΎΠΌΠΌΠΈΡ
59eda67ba4
|
@ -92,7 +92,7 @@ const CGFloat kVerticalTitleMargin = 2;
|
|||
|
||||
// Make use of NSImageView to draw the image, which can correctly draw
|
||||
// template image under dark menu bar.
|
||||
if (highlight && alternateImage_ &&
|
||||
if (inMouseEventSequence_ && alternateImage_ &&
|
||||
[image_view_ image] != alternateImage_.get()) {
|
||||
[image_view_ setImage:alternateImage_];
|
||||
} else if ([image_view_ image] != image_.get()) {
|
||||
|
|
ΠΠ°Π³ΡΡΠ·ΠΊΠ°β¦
Π‘ΡΡΠ»ΠΊΠ° Π² Π½ΠΎΠ²ΠΎΠΉ Π·Π°Π΄Π°ΡΠ΅