2017-11-25 06:39:59 +01:00
|
|
|
//
|
|
|
|
// SidebarCellAppearance.swift
|
2018-08-29 07:18:24 +02:00
|
|
|
// NetNewsWire
|
2017-11-25 06:39:59 +01:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 11/24/17.
|
|
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2018-02-03 07:51:32 +01:00
|
|
|
import AppKit
|
2017-11-25 06:39:59 +01:00
|
|
|
|
|
|
|
struct SidebarCellAppearance: Equatable {
|
|
|
|
|
2019-04-11 07:23:31 +02:00
|
|
|
let imageSize = CGSize(width: 16, height: 16)
|
|
|
|
let imageMarginRight: CGFloat = 4.0
|
|
|
|
let unreadCountMarginLeft: CGFloat = 10.0
|
2017-11-25 06:39:59 +01:00
|
|
|
let textFieldFontSize: CGFloat
|
|
|
|
let textFieldFont: NSFont
|
|
|
|
|
2019-04-11 07:23:31 +02:00
|
|
|
init(fontSize: FontSize) {
|
2020-07-02 05:17:38 +02:00
|
|
|
self.textFieldFontSize = AppDefaults.shared.actualFontSize(for: fontSize)
|
2017-11-25 06:39:59 +01:00
|
|
|
self.textFieldFont = NSFont.systemFont(ofSize: textFieldFontSize)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|