mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-01 11:36:56 +01:00
Remove icons for smart feeds and folders.
This commit is contained in:
parent
1e23ead8c6
commit
04dab356eb
@ -12,7 +12,7 @@ import RSCore
|
|||||||
struct MasterTableViewCellLayout {
|
struct MasterTableViewCellLayout {
|
||||||
|
|
||||||
private static let imageSize = CGSize(width: 16, height: 16)
|
private static let imageSize = CGSize(width: 16, height: 16)
|
||||||
private static let imageMarginLeft = CGFloat(integerLiteral: 8)
|
private static let marginLeft = CGFloat(integerLiteral: 8)
|
||||||
private static let imageMarginRight = CGFloat(integerLiteral: 8)
|
private static let imageMarginRight = CGFloat(integerLiteral: 8)
|
||||||
private static let unreadCountMarginLeft = CGFloat(integerLiteral: 8)
|
private static let unreadCountMarginLeft = CGFloat(integerLiteral: 8)
|
||||||
private static let unreadCountMarginRight = CGFloat(integerLiteral: 0)
|
private static let unreadCountMarginRight = CGFloat(integerLiteral: 0)
|
||||||
@ -30,7 +30,7 @@ struct MasterTableViewCellLayout {
|
|||||||
// Favicon
|
// Favicon
|
||||||
var rFavicon = CGRect.zero
|
var rFavicon = CGRect.zero
|
||||||
if shouldShowImage {
|
if shouldShowImage {
|
||||||
var indentX = showingEditingControl ? MasterTableViewCellLayout.imageMarginLeft + 40 : MasterTableViewCellLayout.imageMarginLeft
|
var indentX = showingEditingControl ? MasterTableViewCellLayout.marginLeft + 40 : MasterTableViewCellLayout.marginLeft
|
||||||
indentX = indent ? indentX + 20 : indentX
|
indentX = indent ? indentX + 20 : indentX
|
||||||
rFavicon = CGRect(x: indentX, y: 0.0, width: MasterTableViewCellLayout.imageSize.width, height: MasterTableViewCellLayout.imageSize.height)
|
rFavicon = CGRect(x: indentX, y: 0.0, width: MasterTableViewCellLayout.imageSize.width, height: MasterTableViewCellLayout.imageSize.height)
|
||||||
rFavicon = MasterTableViewCellLayout.centerVertically(rFavicon, bounds)
|
rFavicon = MasterTableViewCellLayout.centerVertically(rFavicon, bounds)
|
||||||
@ -44,7 +44,7 @@ struct MasterTableViewCellLayout {
|
|||||||
if shouldShowImage {
|
if shouldShowImage {
|
||||||
rLabel.origin.x = rFavicon.maxX + MasterTableViewCellLayout.imageMarginRight
|
rLabel.origin.x = rFavicon.maxX + MasterTableViewCellLayout.imageMarginRight
|
||||||
} else {
|
} else {
|
||||||
rLabel.origin.x = indent ? 20 : 0
|
rLabel.origin.x = indent ? MasterTableViewCellLayout.marginLeft + 10 : MasterTableViewCellLayout.marginLeft
|
||||||
}
|
}
|
||||||
|
|
||||||
rLabel = MasterTableViewCellLayout.centerVertically(rLabel, bounds)
|
rLabel = MasterTableViewCellLayout.centerVertically(rLabel, bounds)
|
||||||
|
@ -394,7 +394,7 @@ class MasterViewController: UITableViewController, UndoableCommandRunner {
|
|||||||
cell.name = nameFor(node)
|
cell.name = nameFor(node)
|
||||||
configureUnreadCount(cell, node)
|
configureUnreadCount(cell, node)
|
||||||
configureFavicon(cell, node)
|
configureFavicon(cell, node)
|
||||||
cell.shouldShowImage = node.representedObject is SmallIconProvider
|
cell.shouldShowImage = node.representedObject is Feed
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user