https://github.com/kelan/yrk-spinning-progress-indicatorを使用して白色のスピナーを取得しています。これは NSProgressIndicator のサブクラスではなく、カスタム NSView であることに注意してください。
問題は、このカスタム ビューの角が、クリアな背景ではなく白く表示されることです。これは、次の画像で確認できます。
これは私が持っているコードです:
[_statusProgressIndicator setColor:[NSColor whiteColor]];
[_statusProgressIndicator setIndeterminate:YES];
[_statusProgressIndicator setBackgroundColor:[NSColor clearColor]];
[_statusProgressIndicator setDrawsBackground:YES];
[_statusProgressIndicator startAnimation:self];
私も試しました:
[_statusProgressIndicator setDrawsBackground:NO];
しかし、それは同じ効果があります。
これを修正する方法についてのアイデアはありますか?