Transparent NSCollectionView Background

前端 未结 3 508
滥情空心
滥情空心 2021-01-04 23:53

I\'m again struggling with setting NSViews background colors to transparent. I have a NSCollectionView as part of NSClipView which is part of a

3条回答
  •  Happy的楠姐
    2021-01-05 00:43

    Ok, after a long evil trial and error phase I found a solution at least for myself. There are two background colors to set in order to have the proper behavior:

    1. the background color of the NSScrollView:

    1. the NSCollectionView primary color:

    Both have to be set appropriately. At the point I set both to the same color I got the background I want. With setting only the ScrollView background color there was still the white background when scrolling the items in the CollectionView.

提交回复
热议问题