@@ -35,17 +35,19 @@ class NCRecommendationsCell: UICollectionViewCell, UIGestureRecognizerDelegate {
3535 }
3636
3737 func initCell( ) {
38- if metadata. hasPreview, metadata. classFile == NKCommon . TypeClassFile. document. rawValue {
39- let imageButton = UIImage ( systemName: " ellipsis.circle.fill " , withConfiguration: UIImage . SymbolConfiguration ( pointSize: 15 , weight: . thin) ) ? . applyingSymbolConfiguration ( UIImage . SymbolConfiguration ( paletteColors: [ . white, . black] ) )
40- buttonMenu. setImage ( imageButton, for: . normal)
38+ let imageButton = UIImage ( systemName: " ellipsis.circle.fill " , withConfiguration: UIImage . SymbolConfiguration ( pointSize: 15 , weight: . thin) ) ? . applyingSymbolConfiguration ( UIImage . SymbolConfiguration ( paletteColors: [ . black, . white] ) )
39+
40+ buttonMenu. setImage ( imageButton, for: . normal)
41+ buttonMenu. layer. shadowColor = UIColor . black. cgColor
42+ buttonMenu. layer. shadowOpacity = 0.2
43+ buttonMenu. layer. shadowOffset = CGSize ( width: 2 , height: 2 )
44+ buttonMenu. layer. shadowRadius = 4
4145
46+ if metadata. hasPreview, metadata. classFile == NKCommon . TypeClassFile. document. rawValue {
4247 image. layer. cornerRadius = 10
4348 image. layer. masksToBounds = true
4449 image. layer. borderWidth = 0.5
4550 image. layer. borderColor = UIColor . separator. cgColor
46- } else {
47- let imageButton = UIImage ( systemName: " ellipsis.circle.fill " , withConfiguration: UIImage . SymbolConfiguration ( pointSize: 15 , weight: . thin) ) ? . applyingSymbolConfiguration ( UIImage . SymbolConfiguration ( paletteColors: [ . black, . white] ) )
48- buttonMenu. setImage ( imageButton, for: . normal)
4951 }
5052
5153 let longPressedGesture = UILongPressGestureRecognizer ( target: self , action: #selector( longPress ( gestureRecognizer: ) ) )
0 commit comments