|
@@ -211,11 +211,11 @@ class NCSharePagingView: PagingView {
|
|
|
if FileManager.default.fileExists(atPath: CCUtility.getDirectoryProviderStorageIconOcId(metadata!.ocId, fileNameView: metadata!.fileNameView)) {
|
|
|
headerView.imageView.image = UIImage.init(contentsOfFile: CCUtility.getDirectoryProviderStorageIconOcId(metadata!.ocId, fileNameView: metadata!.fileNameView))
|
|
|
} else {
|
|
|
- if metadata!.iconName.count > 0 {
|
|
|
- headerView.imageView.image = UIImage.init(named: metadata!.iconName)
|
|
|
- } else if metadata!.directory {
|
|
|
+ if metadata!.directory {
|
|
|
let image = UIImage.init(named: "folder")!
|
|
|
headerView.imageView.image = CCGraphics.changeThemingColorImage(image, width: image.size.width*2, height: image.size.height*2, color: NCBrandColor.sharedInstance.brandElement)
|
|
|
+ } else if metadata!.iconName.count > 0 {
|
|
|
+ headerView.imageView.image = UIImage.init(named: metadata!.iconName)
|
|
|
} else {
|
|
|
headerView.imageView.image = UIImage.init(named: "file")
|
|
|
}
|
|
@@ -245,9 +245,10 @@ class NCSharePagingView: PagingView {
|
|
|
collectionView.heightAnchor.constraint(equalToConstant: options.menuHeight),
|
|
|
collectionView.topAnchor.constraint(equalTo: headerView.bottomAnchor),
|
|
|
|
|
|
- headerView.topAnchor.constraint(equalTo: topAnchor, constant: 10),
|
|
|
- headerView.leadingAnchor.constraint(equalTo: leadingAnchor),
|
|
|
- headerView.trailingAnchor.constraint(equalTo: trailingAnchor),
|
|
|
+ headerView.widthAnchor.constraint(equalToConstant: 150),
|
|
|
+ headerView.heightAnchor.constraint(equalToConstant: 150),
|
|
|
+ headerView.topAnchor.constraint(equalTo: topAnchor, constant: 100),
|
|
|
+ headerView.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 10),
|
|
|
|
|
|
pageView.leadingAnchor.constraint(equalTo: leadingAnchor),
|
|
|
pageView.trailingAnchor.constraint(equalTo: trailingAnchor),
|